/* School login: local campus artwork, accessible controls, responsive layout. */
:root { --navy: #182f50; --ink: #203450; --muted: #718096; --gold: #f2cc7c; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: 'Nunito', 'Segoe UI', sans-serif; color: var(--ink); background: #f3f5f9; }
.login-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 18px 24px; background: radial-gradient(ellipse at 10% 10%, #e1e9f6, transparent 55%), #f5f6fa; }
.page-header { width: 100%; max-width: 920px; margin: 0 auto 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #65748b; font-size: 11px; }
.wordmark { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-size: 22px; font-weight: 800; letter-spacing: -.8px; }
.wordmark:hover { color: #345a8d; text-decoration: none; }
.wordmark > i { display: grid; place-items: center; width: 37px; height: 37px; margin-right: 5px; background: var(--navy); color: var(--gold); border-radius: 12px; font-size: 17px; }
.wordmark span { font-weight: 400; }
.login-card { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 920px; margin: 0 auto; background: #fff; border: 1px solid #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 48px #23385815; flex-shrink: 0; }
.login-hero { display: flex; flex-direction: column; min-width: 0; position: relative; overflow: hidden; padding: 28px 32px 24px; color: white; background: linear-gradient(180deg, #10253dd9 0%, #10253d80 48%, #10253def 100%), url('../img/auth/academic-school-parallax.png') center / cover; }
.login-hero-inner { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 13px; align-items: center; }
.login-logo { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 56px; padding: 6px; border-radius: 12px; background: white; }
.login-logo img { width: 100%; height: 100%; object-fit: contain; }
.login-hero-title { font-size: 16px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.login-hero-subtitle { font-size: 9px; letter-spacing: 1.3px; color: #d4dfec; text-transform: uppercase; }
.login-dinas-address { grid-column: 2; color: #e0e8f0; font-size: 11px; line-height: 1.5; margin-top: 3px; }
.login-hero-feature { display: none; }
.story-copy { margin: 44px 0 26px; }
.story-kicker { display: inline-flex; align-items: center; gap: 9px; color: #f5d99e; font-size: 9px; font-weight: 800; letter-spacing: 1.8px; }
.story-kicker::before { content: ''; width: 20px; height: 2px; background: var(--gold); }
.story-copy h1 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -1.4px; margin: 14px 0 16px; color: #fff; }
.story-copy h1 em { color: #ffdc94; font-style: normal; }
.story-copy p { max-width: 340px; color: #e0e8f0; font-size: 13px; line-height: 1.85; margin-bottom: 0; }
.hero-note { display: flex; align-items: center; gap: 13px; margin-top: auto; padding: 15px; background: #ffffff12; border: 1px solid #ffffff30; border-radius: 14px; backdrop-filter: blur(10px); }
.hero-note-icon { display: grid; place-items: center; flex: 0 0 39px; height: 39px; border-radius: 11px; background: #f2cc7c22; color: var(--gold); font-size: 20px; }
.hero-note strong, .hero-note div > span { display: block; }
.hero-note strong { font-size: 12px; margin-bottom: 3px; }
.hero-note div > span { font-size: 10px; color: #d0ddeb; }
.story-features { display: flex; flex-wrap: wrap; gap: 12px 18px; padding-top: 22px; color: #d8e1ed; font-size: 9px; }
.story-features i { color: var(--gold); margin-right: 5px; }
.login-body { min-width: 0; padding: 28px 36px 22px; }
.portal-badge { display: inline-flex; align-items: center; gap: 7px; color: #466186; background: #eef3fa; border: 1px solid #e3eaf5; padding: 6px 10px; border-radius: 20px; font-size: 10px; font-weight: 800; margin-bottom: 16px; }
.login-body h2 { max-width: 320px; color: var(--navy); font-size: 28px; font-weight: 800; letter-spacing: -.8px; line-height: 1.2; margin: 0 0 8px; }
.login-body h2 span { color: #c69a44; }
.form-intro { color: var(--muted); font-size: 12px; line-height: 1.6; margin-bottom: 18px; }
.login-field { margin-bottom: 12px; }
.login-field label { display: block; font-size: 12px; font-weight: 800; color: #364760; margin-bottom: 8px; }
.input-wrap { position: relative; }
.input-icon { position: absolute; top: 50%; transform: translateY(-50%); left: 16px; font-size: 13px; color: #8997ab; pointer-events: none; }
.login-input { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #dfe5ee; border-radius: 10px; background: #fafbfd; color: var(--ink); font-size: 13px; transition: border-color .18s, box-shadow .18s; }
.input-wrap .login-input { padding-left: 43px; }
#password { padding-right: 48px; }
.login-input::placeholder { color: #8692a4; }
.login-input:focus { outline: none; border-color: #577fac; background: white; box-shadow: 0 0 0 3px #426ea41a; }
.password-toggle { position: absolute; top: 2px; right: 2px; width: 42px; height: 42px; border: 0; border-radius: 8px; background: transparent; color: #75859b; transition: background-color .18s, color .18s; }
.password-toggle:hover { background: #eaf5ef; color: #255553; }
button:focus-visible, a:focus-visible { outline: 3px solid #83c9aa; outline-offset: 3px; }
.captcha-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; padding: 12px; background: #f6f8fc; border: 1px solid #e8edf4; border-radius: 12px; }
.captcha-field label, .captcha-field > .small { grid-column: 1 / -1; }
.captcha-field label.text-primary { color: #364760 !important; font-size: 11px; }
.captcha-field > .small { font-size: 10px; }
.captcha-field .alert { display: grid; place-items: center; margin: 0 !important; background: #eaf0f8; border-color: #dce5f1 !important; font-size: 15px; letter-spacing: 1px; }
.captcha-field .login-input { height: 44px; background: white; font-size: 12px; }
.login-btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 7px 10px 7px 18px; border: 1px solid #142d43; border-radius: 12px; color: #fff; background: linear-gradient(115deg, #142d43, #255553); font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: .15px; box-shadow: 0 8px 18px #142d4326; cursor: pointer; transition: transform .18s, box-shadow .18s, filter .18s; }
.login-btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 11px 22px #142d4333; }
.login-btn:active { transform: translateY(0); box-shadow: 0 4px 10px #142d4326; }
.login-btn span { flex: 1; text-align: center; }
.login-btn i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #ffffff30; border-radius: 10px; background: #ffffff17; color: #bcebd3; font-size: 12px; transition: transform .18s, background-color .18s; }
.login-btn:hover i { transform: translateX(2px); background: #ffffff24; }
.account-help { margin: 12px 0 18px; text-align: center; color: #738096; font-size: 10px; }
.parent-login-link { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px; border: 1px solid #d5e7dd; border-radius: 11px; background: #f4faf6; color: #255553; font-size: 11px; font-weight: 800; transition: border-color .18s, background-color .18s, color .18s, transform .18s; }
.parent-login-link:hover { color: #142d43; border-color: #9dcbb4; background: #eaf5ef; transform: translateY(-1px); text-decoration: none; }
.parent-login-link .fa-arrow-right { margin-left: auto; font-size: 10px; }
.login-footer { margin-top: 16px; padding-top: 12px; border-top: 1px solid #edf0f5; text-align: center; color: #7b8799; font-size: 10px; line-height: 1.7; }
.login-footer-brand { font-weight: 800; color: #465a76; }
.login-footer-tagline { display: block; font-size: 9px; }
.login-footer-school { display: none; }
.login-alert { border-radius: 10px; font-size: 12px; }
.school-login .login-parallax-widget, .school-login .login-parallax-tile, .school-login .login-parallax-ring { display: none; }
.school-login .login-parallax-grid { opacity: .15; }
.school-login .login-parallax-orb-mint { background: radial-gradient(circle, #cfddf399, transparent 70%); }
.school-login .login-parallax-orb-navy { background: radial-gradient(circle, #f2cc7c25, transparent 70%); }
@media (max-width: 950px) { .login-body { padding: 30px; } .login-hero { padding: 30px; } .story-copy h1 { font-size: 39px; } }
@media (max-width: 820px) {
 .login-screen { padding: 18px 16px; justify-content: flex-start; }
 .page-header, .login-card { max-width: 520px; }
 .page-header { margin-bottom: 16px; font-size: 10px; }
 .wordmark { font-size: 20px; }
 .login-card { display: block; border-radius: 21px; }
 .login-hero { padding: 22px 25px; background-position: center 47%; }
 .login-hero-inner { grid-template-columns: 43px minmax(0, 1fr); }
 .login-logo { width: 43px; height: 47px; }
 .login-hero-title { font-size: 14px; }
 .login-hero-subtitle { font-size: 8px; }
 .story-copy { margin: 22px 0 0; }
 .story-kicker, .story-copy p, .hero-note, .story-features { display: none; }
 .story-copy h1 { font-size: 29px; letter-spacing: -.8px; margin: 0; }
 .story-copy h1 br:first-child { display: none; }
 .login-body { padding: 22px 26px; }
 .portal-badge { margin-bottom: 15px; }
 .login-body h2 { max-width: none; font-size: 27px; }
 .form-intro { margin-bottom: 20px; }
 .login-input, .captcha-field .login-input { font-size: 16px; }
 .login-input::placeholder { font-size: 12px; }
}
@media (max-width: 360px) {
 .login-screen { padding: 12px 10px; }
 .login-body, .login-hero { padding: 20px; }
 .page-header > span { max-width: 125px; text-align: right; }
 .story-copy h1 { font-size: 26px; }
 .login-body h2 { font-size: 25px; }
 .captcha-field { padding: 10px; }
}
@media (max-height: 740px) and (min-width: 821px) {
 .login-screen { padding-top: 16px; padding-bottom: 16px; }
 .login-body { padding-top: 25px; padding-bottom: 20px; }
 .story-copy { margin-top: 45px; }
 .form-intro { margin-bottom: 18px; }
 .login-field { margin-bottom: 12px; }
 .portal-badge { margin-bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
/* Portal selection stays readable on narrow screens. */
.login-portals { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.login-portals a { flex: 1 1 auto; padding: 9px 12px; border: 1px solid #dce7e2; border-radius: 10px; background: #fff; color: #425875; text-align: center; font-size: 12px; font-weight: 700; transition: transform .18s, border-color .18s, background-color .18s, color .18s, box-shadow .18s; }
.login-portals a:hover { transform: translateY(-1px); border-color: #9dcbb4; background: #f4faf6; color: #255553; text-decoration: none; }
.login-portals a[aria-current="page"] { background: #eaf5ef; border-color: #80b89a; color: #1f514b; box-shadow: inset 0 0 0 1px #80b89a30; }
