:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #102443; background: #f6f9fe; color-scheme: light; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #3877d9; outline-offset: 4px; }
.skip-link { position: absolute; top: -70px; left: 20px; padding: 12px; background: white; z-index: 3; }
.skip-link:focus { top: 12px; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, .95fr) minmax(420px, 1.05fr); }
.intro { padding: 44px clamp(30px,5vw,80px); background: #102443; color: white; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.intro::after { content: ""; width: 460px; height: 460px; border: 1px solid #294568; border-radius: 50%; position: absolute; right: -290px; bottom: -220px; box-shadow: 0 0 0 55px #183151, 0 0 0 56px #294568; pointer-events: none; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; font-size: 27px; font-weight: 800; letter-spacing: -1px; text-decoration: none; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; background: #edf4ff; color: #102443; border-radius: 10px; }
.brand-dot { color: #8cb8ff; margin-left: -9px; }
.intro-copy { margin: auto 0; padding: 70px 0; position: relative; z-index: 1; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .15em; margin: 0 0 18px; color: #3766aa; }
.intro .eyebrow { color: #9bbff3; }
h1 { font-size: clamp(2.25rem,3.6vw,3.8rem); line-height: 1.12; letter-spacing: -.045em; margin: 0 0 26px; }
.intro-copy > p:not(.eyebrow) { color: #becde1; font-size: 1.05rem; line-height: 1.8; max-width: 340px; }
.intro-note { display: flex; align-items: center; gap: 16px; border-top: 1px solid #304562; margin-top: 44px; padding-top: 26px; max-width: 350px; }
.intro-note > span { background: #243e61; border-radius: 12px; width: 40px; height: 40px; display: grid; place-items: center; color: #a6caff; }
.intro-note p { margin: 0; color: #b9cbe3; font-size: .9rem; line-height: 1.7; }
.intro-note strong { font-weight: 500; color: white; }
.intro-footer { color: #a4b8d2; font-size: .8rem; position: relative; z-index: 1; }
.form-side { padding: 45px clamp(24px,5.5vw,90px) 28px; display: flex; flex-direction: column; background: #fcfdff; }
.back-link { font-size: .9rem; color: #56677f; text-decoration: none; align-self: flex-start; padding: 8px 0; }
.back-link:hover { text-decoration: underline; }
.form-wrap { width: 100%; max-width: 420px; margin: auto; padding: 50px 0; }
h2 { font-size: clamp(1.75rem,2.3vw,2.15rem); letter-spacing: -.035em; line-height: 1.2; margin: 0 0 16px; }
.description { color: #5c6a7e; line-height: 1.7; margin: 0 0 32px; }
fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
label { display: block; font-size: .9rem; font-weight: 650; margin-bottom: 9px; }
input { width: 100%; border: 1px solid #c5d1e1; border-radius: 9px; min-height: 52px; padding: 13px 15px; color: #102443; background: white; }
#email { margin-bottom: 24px; }
.password-wrap { position: relative; margin-bottom: 28px; }
.password-wrap input { padding-right: 100px; }
.password-wrap button { position: absolute; top: 4px; right: 5px; min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: #285ca9; font-size: .85rem; cursor: pointer; }
.primary { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 9px; background: #2864c7; color: white; font-weight: 650; cursor: pointer; }
.primary:hover:not(:disabled) { background: #204fa0; }
button:disabled, fieldset:disabled { opacity: .65; cursor: default; }
.session-note { font-size: .85rem; color: #64738a; line-height: 1.7; margin: 24px 0 0; }
.message { background: #edf4ff; border: 1px solid #cfdef3; padding: 14px 16px; border-radius: 9px; margin-bottom: 26px; font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.message[data-state="error"] { background: #fff2f0; color: #9b302e; border-color: #eccac6; }
.message[data-state="success"] { background: #edf8f3; color: #175e43; border-color: #bfdfcf; }
.success-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #175e43; background: #e5f3ec; font-size: 26px; margin-bottom: 24px; }
.account-email { font-weight: 650; overflow-wrap: anywhere; }
.form-footer { text-align: center; color: #6b7a90; font-size: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; }
  .intro { padding: 24px; }
  .intro-copy, .intro-footer { display: none; }
  .intro::after { display: none; }
  .form-side { padding: 18px 24px 22px; min-height: calc(100svh - 85px); }
  .form-wrap { padding: 38px 0; }
}
@media (prefers-reduced-motion: no-preference) { .primary { transition: background .15s; } }
