:root{
    --aada-primary:#6F4AA1;
    --aada-primary-dark:#2B1E68;
    --aada-accent:#B785D6;
    --background:#EEF1F8;
    --card:#FFFFFF;
    --border:#D9DEEA;
    --text:#1E2144;
    --muted:#7C7F9;
    --success:#2E9E5B;
    --danger:#D9534F;
}



.auth-terms a {
    color: #6F4AA8;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.auth-terms a:hover {
    color: #4F2D87;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Inter, Arial, sans-serif;
    background:var(--background);
    color:var(--text);
}

.auth-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px;
}

.auth-card{
    width:100%;
    max-width:1280px;
    min-height:760px;
    display:grid;
    grid-template-columns:52% 48%;
    border-radius:28px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 12px 40px rgba(0,0,0,.08);
}

.auth-left{
    background:linear-gradient(
        135deg,
        #5F3D97 0%,
        #39267F 50%,
        #23195F 100%
    );
    color:white;
    padding:48px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    position:relative;
}

.auth-left::before{
    content:"";
    position:absolute;
    inset:0;
    opacity:.08;
    background-image:radial-gradient(circle at 1px 1px,#fff 1px,transparent 1px);
    background-size:24px 24px;
}

.auth-logo-box{
    position:relative;
    z-index:2;
}

.auth-logo-box img{
    width:100px;
    background:white;
    padding:10px;
    border-radius:12px;
}

.auth-left-content{
    position:relative;
    z-index:2;
}

.auth-left h1{
    font-family:Georgia, serif;
    font-size:48px;
    line-height:1.1;
    font-weight:700;
    max-width:420px;
    margin-bottom:24px;
}

.auth-left h1 em{
    color:#C28AE7;
    font-style:italic;
    font-weight:500;
}

.auth-left p{
    font-size:18px;
    line-height:1.55;
    max-width:440px;
    opacity:.95;
}

.auth-stats{
    display:flex;
    gap:48px;
    position:relative;
    z-index:2;
}

.auth-stats div{
    display:flex;
    flex-direction:column;
}

.auth-stats strong{
    font-size:34px;
    font-weight:700;
}

.auth-stats span{
    font-size:14px;
    opacity:.9;
}

.auth-right{
    background:#F5F7FC;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:70px 60px 60px;
}

.auth-form-box{
    width:100%;
    max-width:540px;
}

.auth-form-box h1{
    font-family:Georgia, serif;
    font-size:38px;
    line-height:1.1;
    color:#241A5C;
    margin-bottom:10px;
}

.subtitle{
    color:var(--muted);
    margin-bottom:32px;
    font-size:18px;
}

.auth-field{
    margin-bottom:20px;
}

.auth-field label{
    display:block;
    font-weight:600;
    margin-bottom:8px;
    color:#25284D;
}

.auth-field input,
.auth-field select{
    width:100%;
    height:56px;
    border:1px solid var(--border);
    border-radius:14px;
    background:white;
    padding:0 18px;
    font-size:15px;
}

.auth-field input:focus,
.auth-field select:focus{
    outline:none;
    border-color:var(--aada-primary);
}

.auth-two-col{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.role-toggle{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:10px;
    margin-bottom:24px;
}

.role-toggle label{
    border:1px solid var(--border);
    border-radius:14px;
    background:white;
    padding:14px;
    text-align:center;
    cursor:pointer;
    transition:.2s;
}

.role-toggle label.selected{
    border:2px solid var(--aada-primary);
    background:#F4EEFA;
}

.role-toggle input{
    display:none;
}

.role-toggle strong{
    display:block;
    color:var(--aada-primary);
    margin-bottom:6px;
    font-size:16px;
}

.role-toggle span{
    display:block;
    color:var(--muted);
    font-size:13px;
}

.auth-check{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:22px;
}

.auth-check input{
    width:18px;
    height:18px;
}

.auth-button{
    width:100%;
    height:58px;
    border:none;
    border-radius:14px;
    background:var(--aada-primary);
    color:white;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
    box-shadow:0 8px 20px rgba(111,74,161,.25);
}

.auth-button:hover{
    background:#5F3D97;
    transform:translateY(-1px);
}

.auth-footer{
    text-align:center;
    margin-top:24px;
    color:var(--muted);
}

.auth-footer a{
    color:var(--aada-primary);
    text-decoration:none;
    font-weight:600;
}

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

.auth-error{
    color:var(--danger);
    font-size:13px;
    margin-top:6px;
}

.auth-status{
    margin-bottom:20px;
}

.auth-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.auth-row a{
    color:var(--aada-primary);
    text-decoration:none;
    font-weight:600;
}

@media(max-width:1024px){
    .auth-card{
        grid-template-columns:1fr;
    }

    .auth-left{
        display:none;
    }

    .auth-right{
        padding:40px;
    }
}

@media(max-width:768px){
    .auth-page{
        padding:20px;
    }

    .auth-form-box h1{
        font-size:34px;
    }

    .auth-two-col,
    .role-toggle{
        grid-template-columns:1fr;
    }



.auth-success{
    background:#EEF8F1;
    border:1px solid #B7E0C0;
    color:#2E9E5B;
    padding:14px 16px;
    border-radius:12px;
    margin-bottom:20px;
    font-size:14px;
}

.auth-info-box{
    margin-top:20px;
    padding:16px;
    background:#F5EEF9;
    border:1px solid #E3D4F0;
    border-radius:14px;
    color:#5A4A78;
    font-size:14px;
    line-height:1.5;
}


}

/* =========================================================
   Sprint 14.6.2 - Auth Login Dynamic Stats Refresh
   ========================================================= */

.auth-page{
    min-height:100vh;
}

.auth-left h1{
    max-width:470px;
}

.auth-left h1 em{
    display:inline;
}

.auth-stats{
    align-items:flex-end;
}

.auth-stats strong{
    line-height:1;
}

.auth-stats span{
    margin-top:8px;
}

.auth-logo-box a{
    display:inline-flex;
}

.auth-logo-box img{
    object-fit:contain;
}

.auth-processing-message{
    margin:0 0 16px;
    padding:12px 14px;
    border-radius:12px;
    background:#F5EEF9;
    border:1px solid #E3D4F0;
    color:#5A4A78;
    font-size:14px;
    font-weight:600;
}

@media(max-width:1024px){
    .auth-card{
        min-height:auto;
    }
}
