:root{
    --blue-950:#102d48;
    --blue-900:#153b5d;
    --blue-800:#1c4d73;
    --blue-700:#28658f;
    --blue-500:#4f88ae;
    --gray-950:#1d2935;
    --gray-700:#566575;
    --gray-500:#8996a3;
    --gray-200:#dfe5ea;
    --gray-100:#f2f5f7;
    --white:#ffffff;
}

*{box-sizing:border-box}

body.login-modern{
    margin:0;
    min-height:100vh;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    color:var(--gray-950);
    background:#eef2f5;
    overflow-x:hidden;
}

.login-background{
    position:fixed;
    inset:0;
    overflow:hidden;
    pointer-events:none;
    background:
        radial-gradient(circle at 10% 15%,rgba(40,101,143,.10),transparent 30%),
        radial-gradient(circle at 90% 85%,rgba(21,59,93,.09),transparent 32%),
        linear-gradient(135deg,#f5f7f9,#e9eef2);
}

.login-orb{
    position:absolute;
    border-radius:50%;
    border:1px solid rgba(21,59,93,.07);
}

.orb-one{
    width:480px;height:480px;
    left:-230px;top:-250px;
}

.orb-two{
    width:620px;height:620px;
    right:-330px;bottom:-360px;
}

.login-wrapper{
    position:relative;
    z-index:2;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px 20px;
}

.login-card{
    width:min(1080px,100%);
    min-height:650px;
    display:grid;
    grid-template-columns:44% 56%;
    background:var(--white);
    border:1px solid rgba(16,45,72,.08);
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 24px 70px rgba(16,45,72,.14);
}

.login-brand-panel{
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:38px;
    color:#fff;
    background:
        linear-gradient(145deg,rgba(16,45,72,.98),rgba(28,77,115,.96)),
        #153b5d;
}

.login-brand-panel:after{
    content:"";
    position:absolute;
    width:360px;
    height:360px;
    right:-180px;
    bottom:-180px;
    border:70px solid rgba(255,255,255,.035);
    border-radius:50%;
}

.brand-pill{
    display:inline-flex;
    align-items:center;
    gap:9px;
    width:max-content;
    padding:9px 14px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:999px;
    background:rgba(255,255,255,.08);
    font-size:.75rem;
    font-weight:800;
    letter-spacing:.08em;
}

.brand-content{
    position:relative;
    z-index:1;
    max-width:430px;
}

.school-logo-wrap{
    width:92px;
    height:92px;
    display:grid;
    place-items:center;
    margin-bottom:28px;
    padding:8px;
    border-radius:22px;
    background:rgba(255,255,255,.96);
    box-shadow:0 14px 35px rgba(0,0,0,.15);
}

.school-logo{
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:14px;
}

.school-logo-empty{
    color:var(--blue-800);
    font-size:2.5rem;
}

.brand-kicker,
.form-kicker{
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.14em;
}

.brand-kicker{
    color:#b9cedd;
    margin-bottom:10px;
}

.brand-content h1{
    margin:0;
    font-size:clamp(2rem,3.5vw,3rem);
    line-height:1.08;
    font-weight:800;
    letter-spacing:-.035em;
}

.brand-content p{
    max-width:390px;
    margin:18px 0 0;
    color:#d7e4ed;
    line-height:1.7;
    font-size:.98rem;
}

.brand-bottom{
    position:relative;
    z-index:1;
    display:flex;
    flex-wrap:wrap;
    gap:18px;
    color:#c4d5e1;
    font-size:.78rem;
}

.brand-bottom span{
    display:flex;
    align-items:center;
    gap:7px;
}

.login-form-panel{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:54px clamp(32px,6vw,78px);
    background:#fff;
}

.form-header{
    margin-bottom:28px;
}

.mobile-logo{
    display:none;
}

.form-kicker{
    color:var(--blue-700);
    margin-bottom:8px;
}

.form-header h2{
    margin:0;
    font-size:2rem;
    letter-spacing:-.025em;
    font-weight:800;
    color:var(--gray-950);
}

.form-header p{
    margin:8px 0 0;
    color:var(--gray-700);
    font-size:.92rem;
}

.login-alert{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 14px;
    margin-bottom:20px;
    border:1px solid #f0caca;
    border-radius:12px;
    background:#fff5f5;
    color:#a33a3a;
    font-size:.88rem;
}

.field-group{
    margin-bottom:18px;
}

.field-group label{
    display:block;
    margin-bottom:8px;
    font-size:.82rem;
    font-weight:700;
    color:#3b4a58;
}

.input-modern{
    position:relative;
}

.input-modern > i:first-child{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    color:#7c8a97;
    z-index:2;
}

.input-modern input,
.input-modern select{
    width:100%;
    min-height:52px;
    padding:0 44px;
    border:1px solid var(--gray-200);
    border-radius:12px;
    outline:none;
    background:#fbfcfd;
    color:var(--gray-950);
    font-size:.92rem;
    transition:.18s ease;
}

.input-modern select{
    appearance:none;
    padding-right:45px;
    cursor:pointer;
}

.input-modern input::placeholder{
    color:#a0abb5;
}

.input-modern input:focus,
.input-modern select:focus{
    border-color:#4f88ae;
    background:#fff;
    box-shadow:0 0 0 4px rgba(79,136,174,.11);
}

.select-arrow{
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
    color:#7c8a97;
    pointer-events:none;
}

.password-toggle{
    position:absolute;
    right:7px;
    top:7px;
    width:38px;
    height:38px;
    border:0;
    border-radius:9px;
    background:transparent;
    color:#7c8a97;
}

.password-toggle:hover{
    background:#eef3f6;
    color:var(--blue-800);
}

.login-button{
    width:100%;
    min-height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin-top:8px;
    border:0;
    border-radius:12px;
    color:#fff;
    background:linear-gradient(135deg,var(--blue-800),var(--blue-700));
    box-shadow:0 10px 24px rgba(28,77,115,.22);
    font-size:.92rem;
    font-weight:750;
    cursor:pointer;
    transition:.18s ease;
}

.login-button:hover{
    transform:translateY(-1px);
    box-shadow:0 13px 28px rgba(28,77,115,.28);
    background:linear-gradient(135deg,var(--blue-900),var(--blue-700));
}

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

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

.login-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-top:30px;
    padding-top:18px;
    border-top:1px solid #edf0f2;
    color:#8a96a1;
    font-size:.72rem;
}

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

.login-footer strong{
    color:#64717e;
    font-weight:700;
    white-space:nowrap;
}

@media(max-width:850px){
    .login-card{
        grid-template-columns:1fr;
        max-width:560px;
        min-height:auto;
    }

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

    .login-form-panel{
        padding:40px 30px;
    }

    .mobile-logo{
        width:74px;
        height:74px;
        display:grid;
        place-items:center;
        margin-bottom:22px;
        padding:7px;
        border-radius:18px;
        background:#eef3f6;
        color:var(--blue-800);
        font-size:2rem;
    }

    .mobile-logo img{
        width:100%;
        height:100%;
        object-fit:contain;
        border-radius:12px;
    }
}

@media(max-width:480px){
    .login-wrapper{
        padding:14px;
    }

    .login-card{
        border-radius:18px;
    }

    .login-form-panel{
        padding:30px 20px 22px;
    }

    .form-header h2{
        font-size:1.7rem;
    }

    .login-footer{
        flex-direction:column;
        align-items:flex-start;
    }
}
