.auth-page{
    margin:0;
    min-height:100vh;
    overflow-x:hidden;
    background:#eef3f0;
    color:#172033;
}

.auth-layout{
    min-height:100vh;
    display:grid;
    grid-template-columns:minmax(320px,42%) minmax(0,58%);
}

/* Brand panel */
.auth-brand-panel{
    position:relative;
    min-height:100vh;
    overflow:hidden;
    background-color:var(--auth-primary,#087637);
    color:#fff;
}

.auth-brand-panel::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(155deg,rgba(0,0,0,.24),rgba(0,0,0,0) 48%),
        linear-gradient(15deg,rgba(9,41,70,.32),rgba(0,0,0,0) 52%);
}

.auth-brand-panel::after{
    content:"";
    position:absolute;
    inset:0;
    opacity:.08;
    background-image:
        linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.18) 1px,transparent 1px);
    background-size:40px 40px;
}

.auth-brand-glow{
    position:absolute;
    border-radius:50%;
    pointer-events:none;
}

.auth-brand-glow-a{
    width:330px;
    height:330px;
    right:-120px;
    top:-80px;
    background:rgba(115,190,68,.23);
}

.auth-brand-glow-b{
    width:280px;
    height:280px;
    left:-120px;
    bottom:55px;
    border:42px solid rgba(255,255,255,.07);
}

.auth-brand-content{
    position:relative;
    z-index:2;
    min-height:100vh;
    padding:42px clamp(28px,4vw,66px);
    display:flex;
    flex-direction:column;
}

.auth-brand-header{
    display:flex;
    align-items:center;
    gap:14px;
}

.auth-logo-box{
    width:64px;
    height:64px;
    flex:0 0 64px;
    display:grid;
    place-items:center;
    overflow:hidden;
    padding:7px;
    border-radius:18px;
    background:#fff;
    box-shadow:0 14px 28px rgba(0,0,0,.16);
}

.auth-logo-box img,
.auth-mobile-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.auth-logo-box span,
.auth-mobile-logo span{
    font-weight:850;
    color:var(--auth-primary,#087637);
}

.auth-brand-header strong,
.auth-brand-header small{
    display:block;
}

.auth-brand-header strong{
    max-width:390px;
    font-size:1.05rem;
    line-height:1.25;
    color:#fff;
}

.auth-brand-header small{
    margin-top:4px;
    color:rgba(255,255,255,.72);
    font-size:.78rem;
}

.auth-brand-message{
    margin:auto 0;
    padding:36px 0;
    max-width:560px;
}

.auth-security-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border:1px solid rgba(255,255,255,.17);
    border-radius:999px;
    background:rgba(255,255,255,.09);
    color:#fff;
    font-size:.7rem;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.auth-brand-message h1{
    margin:22px 0 14px;
    max-width:530px;
    font-size:clamp(2.45rem,4.4vw,4.7rem);
    line-height:.98;
    letter-spacing:-.055em;
    font-weight:850;
    color:#fff;
}

.auth-brand-message p{
    max-width:520px;
    margin:0;
    color:rgba(255,255,255,.78);
    font-size:.98rem;
    line-height:1.75;
}

.auth-brand-features{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.auth-brand-features>div{
    min-width:0;
    padding:14px;
    border:1px solid rgba(255,255,255,.13);
    border-radius:16px;
    background:rgba(255,255,255,.08);
}

.auth-brand-features>div>i{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    margin-bottom:9px;
    border-radius:10px;
    color:var(--auth-accent,#73BE44);
    background:rgba(255,255,255,.10);
}

.auth-brand-features span,
.auth-brand-features strong,
.auth-brand-features small{
    display:block;
}

.auth-brand-features strong{
    color:#fff;
    font-size:.78rem;
}

.auth-brand-features small{
    margin-top:3px;
    color:rgba(255,255,255,.62);
    font-size:.66rem;
    line-height:1.45;
}

.auth-brand-footer{
    display:flex;
    flex-wrap:wrap;
    gap:8px 16px;
    margin-top:20px;
    color:rgba(255,255,255,.72);
    font-size:.68rem;
}

.auth-brand-footer span{
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.auth-brand-footer i{
    color:var(--auth-accent,#73BE44);
}

/* Login panel */
.auth-login-panel{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:42px clamp(28px,5vw,78px);
    background:
        radial-gradient(circle at 96% 5%,rgba(8,118,55,.07),transparent 27%),
        #fff;
}

.auth-login-card{
    width:100%;
    max-width:510px;
}

.auth-mobile-brand{
    display:none;
    align-items:center;
    gap:12px;
    margin-bottom:28px;
}

.auth-mobile-logo{
    width:54px;
    height:54px;
    flex:0 0 54px;
    display:grid;
    place-items:center;
    padding:6px;
    overflow:hidden;
    border:1px solid #dde6e1;
    border-radius:15px;
    background:#fff;
    box-shadow:0 8px 20px rgba(15,23,42,.07);
}

.auth-mobile-brand strong,
.auth-mobile-brand small{
    display:block;
}

.auth-mobile-brand strong{
    font-size:.92rem;
}

.auth-mobile-brand small{
    margin-top:2px;
    color:#667085;
    font-size:.7rem;
}

.auth-heading{
    margin-bottom:30px;
}

.auth-kicker{
    display:inline-block;
    padding:7px 11px;
    border-radius:999px;
    background:#edf7f1;
    color:var(--auth-primary,#087637);
    font-size:.68rem;
    font-weight:850;
    letter-spacing:.1em;
}

.auth-heading h2{
    margin:12px 0 8px;
    font-size:clamp(2.1rem,3.2vw,3rem);
    line-height:1;
    letter-spacing:-.045em;
    font-weight:850;
    color:#172033;
}

.auth-heading p{
    margin:0;
    color:#667085;
    font-size:.9rem;
    line-height:1.6;
}

.auth-login-form{
    display:grid;
    gap:20px;
}

.auth-field>label,
.auth-field-head label{
    margin:0;
    color:#344054;
    font-size:.8rem;
    font-weight:750;
}

.auth-field-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:8px;
}

.auth-field-head a{
    color:var(--auth-primary,#087637);
    text-decoration:none;
    font-size:.74rem;
    font-weight:750;
}

.auth-field-head a:hover{
    text-decoration:underline;
}

.auth-control{
    position:relative;
    margin-top:8px;
}

.auth-control>i{
    position:absolute;
    z-index:3;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#7d8995;
    pointer-events:none;
}

.auth-control input{
    width:100%;
    min-height:56px;
    border:1px solid #d9e2dd;
    border-radius:14px;
    outline:0;
    padding:0 48px 0 46px;
    background:#fff;
    color:#172033;
    font-size:.9rem;
    box-shadow:0 5px 18px rgba(15,23,42,.025);
    transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.auth-control input:focus{
    border-color:var(--auth-primary,#087637);
    box-shadow:0 0 0 4px rgba(8,118,55,.09);
    transform:translateY(-1px);
}

.auth-control input::placeholder{
    color:#a0aab5;
}

.auth-password-toggle{
    position:absolute;
    z-index:4;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border:0;
    border-radius:10px;
    background:transparent;
    color:#667085;
}

.auth-password-toggle:hover{
    color:var(--auth-primary,#087637);
    background:#f0f6f2;
}

.auth-login-button{
    min-height:56px;
    border:0;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:var(--auth-primary,#087637)!important;
    color:#fff!important;
    font-size:.88rem;
    font-weight:850;
    box-shadow:0 14px 30px rgba(8,118,55,.22);
    transition:transform .18s ease,box-shadow .18s ease;
}

.auth-login-button:hover,
.auth-login-button:focus{
    background:var(--auth-primary,#087637)!important;
    color:#fff!important;
    transform:translateY(-2px);
    box-shadow:0 18px 34px rgba(8,118,55,.28);
}

.auth-login-button i{
    transition:transform .18s ease;
}

.auth-login-button:hover i{
    transform:translateX(3px);
}

.auth-login-button:disabled{
    opacity:.7;
    cursor:not-allowed;
}

.auth-trust-box{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-top:22px;
    padding:14px 15px;
    border:1px solid #e4ebe7;
    border-radius:14px;
    background:#fafcfb;
}

.auth-trust-box>i{
    width:32px;
    height:32px;
    flex:0 0 32px;
    display:grid;
    place-items:center;
    border-radius:9px;
    color:var(--auth-primary,#087637);
    background:#edf7f1;
}

.auth-trust-box strong,
.auth-trust-box small{
    display:block;
}

.auth-trust-box strong{
    color:#344054;
    font-size:.76rem;
}

.auth-trust-box small{
    margin-top:2px;
    color:#667085;
    font-size:.68rem;
    line-height:1.5;
}

.auth-copyright{
    margin-top:22px;
    text-align:center;
    color:#98a2b3;
    font-size:.68rem;
}

.auth-page .alert{
    border:0;
    border-radius:12px;
    box-shadow:0 8px 20px rgba(15,23,42,.05);
}

/* Keep the professional two-panel login visible even when DevTools narrows
   the viewport. Collapse only on real phone/small-tablet widths. */
@media(max-width:900px){
    .auth-layout{
        grid-template-columns:minmax(260px,36%) minmax(0,64%);
    }

    .auth-brand-content{
        padding:30px 24px;
    }

    .auth-brand-header strong{
        font-size:.9rem;
    }

    .auth-brand-message h1{
        font-size:2.3rem;
    }

    .auth-brand-message p{
        font-size:.84rem;
    }

    .auth-brand-features{
        grid-template-columns:1fr;
    }

    .auth-brand-features>div{
        display:flex;
        align-items:center;
        gap:10px;
        padding:10px;
    }

    .auth-brand-features>div>i{
        margin-bottom:0;
        flex:0 0 34px;
    }

    .auth-brand-footer{
        display:none;
    }

    .auth-login-panel{
        padding:34px 26px;
    }
}

@media(max-width:720px){
    .auth-layout{
        display:block;
        min-height:100vh;
    }

    .auth-brand-panel{
        display:none;
    }

    .auth-login-panel{
        min-height:100vh;
        align-items:center;
        padding:24px 18px;
        background:
            linear-gradient(180deg,rgba(8,118,55,.055),transparent 250px),
            #fff;
    }

    .auth-mobile-brand{
        display:flex;
    }

    .auth-login-card{
        max-width:500px;
    }
}

@media(max-width:480px){
    .auth-login-panel{
        align-items:flex-start;
        padding:18px 14px 28px;
    }

    .auth-heading{
        margin-bottom:24px;
    }

    .auth-heading h2{
        font-size:2rem;
    }

    .auth-control input,
    .auth-login-button{
        min-height:54px;
    }
}


/* Stage 15.3: compact-height desktop tuning.
   Keeps the complete login UI visible on common 768-900px tall screens. */
@media (min-width:721px) and (max-height:900px){
    .auth-brand-content{
        padding-top:28px;
        padding-bottom:24px;
    }

    .auth-logo-box{
        width:58px;
        height:58px;
        flex-basis:58px;
    }

    .auth-brand-message{
        padding:22px 0 18px;
    }

    .auth-brand-message h1{
        margin-top:16px;
        margin-bottom:10px;
        font-size:clamp(2.25rem,3.7vw,3.7rem);
    }

    .auth-brand-message p{
        font-size:.88rem;
        line-height:1.58;
    }

    .auth-brand-features>div{
        padding:10px 11px;
    }

    .auth-brand-features>div>i{
        width:30px;
        height:30px;
        margin-bottom:6px;
    }

    .auth-brand-footer{
        margin-top:12px;
    }

    .auth-login-panel{
        padding-top:24px;
        padding-bottom:24px;
    }

    .auth-heading{
        margin-bottom:22px;
    }

    .auth-heading h2{
        margin-top:9px;
        font-size:2.45rem;
    }

    .auth-login-form{
        gap:15px;
    }

    .auth-control input,
    .auth-login-button{
        min-height:52px;
    }

    .auth-trust-box{
        margin-top:16px;
        padding:12px 13px;
    }

    .auth-copyright{
        margin-top:15px;
    }
}

/* Critical branded surfaces get a literal fallback first, then the
   company variable. This keeps them readable even if a browser rejects
   a custom property for any reason. */
.auth-brand-panel{
    background-color:#087637;
    background-color:var(--auth-primary,#087637);
}
.auth-login-button,
.auth-login-button:hover,
.auth-login-button:focus,
.auth-login-button:active{
    background-color:#087637!important;
    background-color:var(--auth-primary,#087637)!important;
    color:#fff!important;
}


/* Stage 15.6: make the OUTER login card compact.
   The form controls themselves keep their normal comfortable size. */
.auth-login-panel{
    background:
        radial-gradient(circle at 92% 8%,rgba(8,118,55,.07),transparent 28%),
        #f4f7f5;
}

.auth-login-card{
    width:100%;
    max-width:430px;
    padding:26px 28px;
    background:#fff;
    border:1px solid #e2e9e5;
    border-radius:22px;
    box-shadow:0 20px 48px rgba(15,23,42,.10);
}

/* Keep the form itself at the normal Stage 15.3 proportions. */
.auth-heading{
    margin-bottom:22px;
}

.auth-heading h2{
    font-size:clamp(2rem,2.8vw,2.45rem);
}

.auth-login-form{
    gap:18px;
}

.auth-control input{
    min-height:54px;
}

.auth-login-button{
    min-height:54px;
}

.auth-trust-box{
    margin-top:18px;
}

.auth-copyright{
    margin-top:16px;
}

@media(max-width:720px){
    .auth-login-card{
        max-width:420px;
        padding:24px;
        border-radius:20px;
    }
}

@media(max-width:480px){
    .auth-login-card{
        max-width:100%;
        padding:20px 18px;
        border-radius:18px;
    }
}


/* Stage 15.7: reduce ONLY the white login card background.
   Keep the login controls at the same practical width. */
.auth-login-card{
    max-width:410px;
    padding:18px;
    border-radius:18px;
}

.auth-login-panel{
    padding-top:24px;
    padding-bottom:24px;
}

@media(max-width:720px){
    .auth-login-card{
        max-width:400px;
        padding:18px;
        border-radius:17px;
    }
}

@media(max-width:480px){
    .auth-login-card{
        max-width:100%;
        padding:16px;
        border-radius:16px;
    }
}
