/* ============================================
   CellLink Print — Minimal Login Styles
   ============================================ */
/* ============================================
   RESPONSIVE BODY & LAYOUT FIX
   ============================================ */
html, body.login {
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important; /* হরিজন্টাল স্ক্রল প্রতিরোধ করবে */
    background: transparent !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important; /* ডেসktop এ ডানপাশে থাকবে */
}

/* ============================================
   MOBILE RESPONSIVE ADJUSTMENT
   ============================================ */
@media (max-width: 768px) {
    body.login {
        justify-content: center !important; /* মোবাইলে একদম মাঝখানে আনবে */
    }

    #login {
        max-width: 90% !important; /* মোবাইলে স্ক্রিনের ৯০% জায়গা নেবে */
        margin: 0 auto !important; /* দুইপাশে সমান মার্জিন রাখবে */
        padding: 10px !important;
    }
}

/* Background Animation Canvas / Div Container */
#custom-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* লগিন ফর্মের নিচে অবস্থান করবে */
    pointer-events: none;
}

/* Canvas/SVG container if your JS code creates canvas */
#custom-bg-animation canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hide default WordPress logo */
.login h1 {
    display: none;
}


/* ============================================
   HIDE ALL SOCIAL LOGIN ICONS & CONTAINERS  এড নতুন করে
   ============================================ */
.sl-container,
.social-login,
.nsl-container,
.heateor_sss_sharing_container,
.wp-social-login-widget-container,
.login .social-icons,
.login-social-icons,
.nsl-container-buttons,
div[class*="social"],
form .social-login-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   LOGIN FORM CONTAINER FIX
   ============================================ */
#login {
    width: 100% !important;
    max-width: 420px !important;
    padding: 20px !important;
    margin: 0 80px 0 0 !important; /* ডেস্কটপে ডানপাশ থেকে ৮০ পিক্সেল দূরে থাকবে */
    box-sizing: border-box !important;
}

/* Form White Card */
.login form {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 36px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    margin: 0;
}

/* ============================================
   WELCOME TEXT
   ============================================ */
.login form::before {
    content: "Welcome";
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

/* ============================================
   INPUT FIELDS
   ============================================ */
.login form .input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 0.9rem;
    color: #1e293b;
    transition: all 0.2s ease;
    outline: none;
    margin-bottom: 16px;
}

.login form .input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.login form .input::placeholder {
    color: #94a3b8;
}

/* Input Icons (using background images) */
.login form .input#user_login {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233b82f6' viewBox='0 0 16 16'%3E%3Cpath d='M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 16px;
}

.login form .input#user_pass {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233b82f6' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 16px;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.wp-core-ui .button-primary {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    text-shadow: none;
    box-shadow: none;
}

.wp-core-ui .button-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* ============================================
   REMEMBER ME
   ============================================ */
.login .forgetmenot {
    margin: 16px 0;
    font-size: 0.85rem;
    color: #64748b;
}

.login .forgetmenot input {
    margin-right: 6px;
}

/* ============================================
   LINKS (Forgot Password)
   ============================================ */
.login #nav {
    text-align: center;
    margin-top: 28px;
    font-size: 0.85rem;
    color: #64748b;
}

.login #nav a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.login #nav a:hover {
    text-decoration: underline;
}

/* Hide "Back to" link */
.login #backtoblog {
    display: none;
}

/* ============================================
   ERROR / MESSAGE STYLES
   ============================================ */
.login #login_error,
.login .message {
    border-radius: 12px;
    border: none;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    box-shadow: none;
}

.login #login_error {
    background: #fef2f2;
    color: #dc2626;
}

.login .message {
    background: #eff6ff;
    color: #2563eb;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.login .language-switcher {
    margin-top: 20px;
    text-align: center;
}

.login select {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 8px 12px;
    font-size: 0.85rem;
    background: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .login form {
        padding: 28px 20px;
    }
    
    .login form::before {
        font-size: 1.3rem;
    }
}

/* ============================================
   HIDE SOCIAL ICONS & SOCIAL LOGIN
   ============================================ */
.sl-container,
.social-login,
.nsl-container,
.heateor_sss_sharing_container,
.wp-social-login-widget-container,
.login .social-icons,
.login-social-icons {
    display: none !important;
}