/* ==========================================================
   Login page only (body.auth-login)
   Loaded after auth.css; every rule is scoped to the login page,
   so register / forgot / reset / verify pages are not affected.
   ========================================================== */

body.auth-login{
    background:#f5f8f6;
}

body.auth-login .auth-form{
    padding:40px 48px;
    align-items:center;
    justify-content:center;
    background:#f5f8f6;
}

body.auth-login .login-card{
    width:100%;
    max-width:440px;
    background:#fff;
    border:1px solid #e7ece9;
    border-radius:22px;
    box-shadow:0 14px 40px rgba(16, 60, 35, .08);
    padding:34px 32px 28px;
}

body.auth-login .logo-top{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin:0 0 22px;
    text-align:center;
}

body.auth-login .logo-top img{
    width:46px;
    height:auto;
}

body.auth-login .logo-top h3{
    font-size:18px;
    font-weight:800;
    color:#16753b;
}

body.auth-login .auth-form h1{
    font-size:28px;
    font-weight:800;
    color:#172033;
    text-align:center;
    margin:0 0 6px;
}

body.auth-login .subtitle{
    font-size:14.5px;
    color:#6b7280;
    text-align:center;
    margin:0 0 26px;
    line-height:1.7;
}

body.auth-login .input-group{
    margin-bottom:16px;
}

body.auth-login .input-group label{
    font-size:14px;
    font-weight:700;
    color:#1f2937;
    margin-bottom:8px;
}

body.auth-login .login-field{
    position:relative;
    height:52px;
    padding:0 14px;
    gap:10px;
    border:1.5px solid #e2e8e4;
    border-radius:13px;
    background:#fbfcfb;
    transition:border-color .2s, box-shadow .2s, background .2s;
}

body.auth-login .login-field:focus-within{
    border-color:#168342;
    background:#fff;
    box-shadow:0 0 0 4px rgba(22, 131, 66, .12);
}

body.auth-login .login-field.has-error{
    border-color:#dc3545;
    box-shadow:0 0 0 4px rgba(220, 53, 69, .10);
}

body.auth-login .login-field-icon{
    width:20px;
    height:20px;
    flex-shrink:0;
    color:#9aa5a0;
}

body.auth-login .login-field:focus-within .login-field-icon{
    color:#168342;
}

body.auth-login .login-field input{
    flex:1;
    min-width:0;
    height:100%;
    font-size:15.5px;
    background:transparent;
    color:#111827;
    text-align:right;
    text-overflow:ellipsis;
}

body.auth-login .login-field input::placeholder{
    color:#a3aca8;
}

body.auth-login .login-toggle-password{
    width:36px;
    height:36px;
    flex-shrink:0;
    border:none;
    border-radius:10px;
    background:transparent;
    color:#7b8782;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

body.auth-login .login-toggle-password:hover,
body.auth-login .login-toggle-password:focus-visible{
    background:#eef5f1;
    color:#168342;
    outline:none;
}

body.auth-login .login-toggle-password svg{
    width:20px;
    height:20px;
}

body.auth-login .login-toggle-password .icon-hide{
    display:none;
}

body.auth-login .login-toggle-password[aria-pressed="true"] .icon-show{
    display:none;
}

body.auth-login .login-toggle-password[aria-pressed="true"] .icon-hide{
    display:block;
}

body.auth-login .forgot{
    display:inline-block;
    margin:2px 0 22px;
    font-size:14px;
    font-weight:700;
    color:#16753b;
}

body.auth-login .forgot:hover{
    text-decoration:underline;
}

body.auth-login .main-btn{
    position:relative;
    height:52px;
    border-radius:13px;
    font-size:16.5px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    transition:background .2s, opacity .2s;
}

body.auth-login .main-btn:disabled{
    opacity:.75;
    cursor:wait;
}

body.auth-login .login-spinner{
    display:none;
    width:18px;
    height:18px;
    border:2.5px solid rgba(255,255,255,.45);
    border-top-color:#fff;
    border-radius:50%;
    animation:loginSpin .8s linear infinite;
}

body.auth-login .main-btn.is-loading .login-spinner{
    display:inline-block;
}

@keyframes loginSpin{
    to{ transform:rotate(360deg); }
}

body.auth-login #loginMessage{
    margin:14px 0 0;
    font-size:14px;
    font-weight:700;
    line-height:1.7;
    text-align:center;
}

body.auth-login #loginMessage:empty{
    display:none;
}

body.auth-login #loginMessage.is-error{
    padding:10px 12px;
    border-radius:11px;
    background:#fdeeee;
    color:#b42318;
}

body.auth-login #loginMessage.is-success{
    padding:10px 12px;
    border-radius:11px;
    background:#e9f7ef;
    color:#167a3f;
}

body.auth-login .divider{
    margin:22px 0 16px;
    gap:14px;
}

body.auth-login .login-guest-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:48px;
    border:1.5px solid #cfe5d8;
    border-radius:13px;
    background:#fff;
    color:#16753b;
    font-size:15px;
    font-weight:800;
    text-decoration:none;
    transition:background .2s, border-color .2s;
}

body.auth-login .login-guest-btn:hover{
    background:#f1faf4;
    border-color:#168342;
}

body.auth-login .login-register{
    margin:18px 0 0;
    text-align:center;
    font-size:14.5px;
    color:#4b5563;
}

body.auth-login .login-register a{
    color:#16753b;
    font-weight:800;
    text-decoration:none;
    white-space:nowrap;
}

body.auth-login .login-register a:hover{
    text-decoration:underline;
}

/* ---------- tablets and phones ---------- */

@media(max-width:900px){

    body.auth-login .auth-form{
        width:100%;
        min-height:calc(100vh - 45px);
        padding:28px 16px;
    }

    body.auth-login .login-card{
        padding:28px 20px 24px;
        border-radius:20px;
    }

    body.auth-login .login-field input{
        font-size:16px; /* 16px prevents iOS zoom on focus */
    }

}

@media(max-width:420px){

    body.auth-login .auth-form{
        padding:18px 12px;
        justify-content:flex-start;
    }

    body.auth-login .login-card{
        padding:24px 16px 22px;
        box-shadow:0 8px 24px rgba(16, 60, 35, .07);
    }

    body.auth-login .auth-form h1{
        font-size:25px;
    }

    body.auth-login .subtitle{
        font-size:14px;
        margin-bottom:22px;
    }

}