.login-page { background: var(--brand-background); }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(420px, .9fr); min-height: 100vh; min-height: 100svh; }
.login-hero {
    position: relative;
    isolation: isolate;
    min-width: 0;
    background: url('../images/genius-school-bg.jpeg') center 28% / cover no-repeat;
}
.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(53, 0, 61, .94), rgba(79, 0, 86, .12) 65%), linear-gradient(135deg, rgba(79, 0, 86, .55), rgba(150, 0, 106, .24) 52%, rgba(0, 0, 0, .12));
}
.login-hero::after {
    content: '';
    position: absolute;
    inset: 0 -14px 0 auto;
    width: 28px;
    background: var(--brand-yellow);
    clip-path: polygon(75% 0, 100% 0, 25% 100%, 0 100%);
    z-index: 3;
    pointer-events: none;
}
.hero-content { position: absolute; left: clamp(40px, 5vw, 90px); right: 40px; bottom: clamp(50px, 8vh, 100px); max-width: 720px; color: white; }
.hero-eyebrow { display: block; margin-bottom: 20px; color: var(--brand-yellow); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-content h1 { color: white; font-size: clamp(2.4rem, 4vw, 4.8rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; margin: 0 0 22px; }
.hero-content p { max-width: 340px; margin: 0; font-size: 1.05rem; line-height: 1.65; color: rgba(255, 255, 255, .88); }
.login-panel { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 48px; background: linear-gradient(160deg, #FFFFFF, #FFF8FE); }
.login-box { width: 100%; max-width: 430px; }
.login-intro { margin-bottom: 32px; }
.login-logo { display: block; width: 90px; height: 90px; object-fit: contain; margin-bottom: 24px; }
.login-heading { margin-bottom: 10px; color: var(--brand-primary); font-size: 2.2rem; font-weight: 750; letter-spacing: -.035em; }
.login-subtitle { margin: 0; max-width: 310px; color: var(--brand-muted); line-height: 1.6; }
.login-field { margin-bottom: 22px; }
.login-form .form-label { margin-bottom: 9px; font-size: .9rem; }
.login-form .form-control, .login-form .form-select { min-height: 52px; border: 1px solid #E4D7E4; border-radius: 10px; background-color: white; color: var(--brand-text); padding-left: 16px; font-size: 1rem; }
.login-form .form-control:focus, .login-form .form-select:focus { border-color: var(--brand-magenta); box-shadow: 0 0 0 4px rgba(192, 0, 136, .10); outline: none; }
.login-password { position: relative; }
.login-password .form-control { padding-right: 56px; }
.login-password .password-toggle { position: absolute; right: 4px; top: 4px; padding: 0; border: 0; border-radius: 7px; color: var(--brand-muted); background: transparent; }
.login-password .password-toggle:hover, .login-password .password-toggle:focus { color: var(--brand-primary); background: var(--brand-tint); }
.login-submit { width: 100%; min-height: 52px; margin-top: 6px; padding: 12px 20px; border: 0; border-radius: 10px; background: linear-gradient(90deg, #6A006F, #C00088); color: white; font-size: 1rem; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(192, 0, 136, .25); }
.login-submit:focus-visible { outline: 3px solid var(--brand-magenta); outline-offset: 4px; }
.login-form .field-validation-error { display: block; margin-top: 6px; }
.login-form .validation-summary-errors ul { margin-bottom: 0; padding-left: 20px; }
.login-copyright { margin-top: 32px; text-align: center; color: var(--brand-muted); font-size: .85rem; }
@media (max-width: 991.98px) {
    .login-shell { display: block; }
    .login-hero { min-height: 320px; background-position: center 24%; }
    .login-hero::after { inset: auto 0 0; width: 100%; height: 8px; clip-path: polygon(0 0, 100% 70%, 100% 100%, 0 100%); }
    .hero-content { left: 24px; right: 24px; bottom: 28px; max-width: none; }
    .hero-content h1 { font-size: 2.2rem; margin-bottom: 0; }
    .hero-content h1 br { display: none; }
    .hero-eyebrow { margin-bottom: 10px; font-size: .72rem; }
    .hero-content p { display: none; }
    .login-panel { padding: 36px 24px; }
    .login-intro { margin-bottom: 28px; }
}
@media (max-width: 575.98px) {
    .login-hero { min-height: 260px; }
    .hero-content h1 { max-width: 320px; font-size: 2.2rem; }
    .login-panel { padding: 32px 24px; }
    .login-logo { width: 72px; height: 72px; margin-bottom: 18px; }
    .login-heading { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .login-submit { transition: none; }
    .login-submit:hover { transform: none; }
}

@media (min-width: 992px) and (max-height: 820px) {
    .login-panel { padding-block: 32px; }
}
