:root { color-scheme: light; --auth-ink: #082344; --auth-muted: #52647d; --auth-blue: #0755aa; --auth-border: #c8d5e5; --auth-error: #a52332; }
* { box-sizing: border-box; }
body.auth-page { margin: 0; background: #f8fafc; color: var(--auth-ink); font: 1rem/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.auth-layout { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, min(65vw, calc(100svh * 998 / 1024))) minmax(28rem, 1fr); }
/* Keep the approved photograph whole. At 1536 x 1024 this is the original
   998px image column; short/wide screens reduce that column, never the motif. */
.auth-hero { position: sticky; top: 0; align-self: start; min-width: 0; background: #5c90bc; }
.auth-hero img { display: block; width: 100%; height: auto; aspect-ratio: 998 / 1024; }
.auth-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 100svh; padding: 5.25rem 3.5rem 3.5rem; background: #fbfcfe; }
.auth-brand { width: 100%; max-width: 26.5rem; text-align: center; margin: 0 0 2.5rem; }
.auth-brand-logo { display: block; width: 12.875rem; max-width: 70%; height: auto; margin: 0 auto; }
.auth-brand-description { display: block; margin-top: .9rem; color: var(--auth-muted); font-size: 1.125rem; line-height: 1.5; }
.auth-card { width: 100%; max-width: 26.5rem; margin: 0; overflow-wrap: anywhere; }
.auth-heading { margin-bottom: 1.75rem; }
.auth-eyebrow { margin: 0 0 .45rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--auth-blue); }
h1 { margin: 0 0 .5rem; font-size: clamp(1.75rem, 2.5vw, 2.2rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 700; }
h2 { margin: 1.5rem 0 .5rem; font-size: 1.1rem; line-height: 1.35; }
p { margin: 0 0 1rem; }
.auth-heading > p:last-child { margin-bottom: 0; color: var(--auth-muted); }
.auth-heading > p { font-size: 1.125rem; }
a { color: var(--auth-blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #003d80; }
.auth-field { margin: 0 0 1.2rem; }
label { display: block; font-size: 1rem; font-weight: 600; margin: 0 0 .4rem; }
input:not([type=hidden]):not([type=checkbox]), textarea, select { display: block; width: 100%; min-width: 0; min-height: 3.5rem; border: 1px solid var(--auth-border); border-radius: .4rem; background: #fff; padding: .75rem .85rem; color: var(--auth-ink); font: inherit; box-shadow: 0 1px 2px #08234404; }
/* Native autofill is the cause of Chromium's blue fill. Keep a readable white
   field in both autofilled and ordinary states without disabling autocomplete. */
.auth-page input:autofill { background: #fff; color: var(--auth-ink); box-shadow: 0 0 0 1000px #fff inset; }
.auth-page input:-webkit-autofill { -webkit-text-fill-color: var(--auth-ink); -webkit-box-shadow: 0 0 0 1000px #fff inset; caret-color: var(--auth-ink); }
.auth-input-wrap { position: relative; }
.auth-input-wrap input { padding-left: 2.8rem !important; }
.auth-input-password input { padding-right: 3.25rem !important; }
.auth-input-icon { position: absolute; top: 1rem; left: .9rem; width: 1.35rem; height: 1.35rem; pointer-events: none; color: #415b7d; fill: none; stroke: currentColor; stroke-width: 1.8; }
input::placeholder, textarea::placeholder { color: #65758c; opacity: 1; }
textarea { min-height: 6rem; resize: vertical; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--auth-error); }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #78b7ff; outline-offset: 3px; }
.auth-form-options { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: .4rem 0 1.5rem; font-size: .875rem; }
.auth-checkbox { display: flex; align-items: center; gap: .55rem; }
.auth-checkbox input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--auth-blue); }
.auth-checkbox label { margin: 0; cursor: pointer; font-size: .875rem; }
button, .auth-button { display: inline-flex; width: 100%; min-height: 3.3rem; align-items: center; justify-content: center; border: 1px solid var(--auth-blue); border-radius: .4rem; padding: .75rem 1rem; background: var(--auth-blue); color: #fff; font: inherit; font-weight: 650; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; }
button:hover, .auth-button:hover { background: #06458a; border-color: #06458a; color: #fff; }
button:disabled { cursor: wait; opacity: .65; }
.auth-button-secondary { background: transparent; color: var(--auth-blue); }
.auth-button-secondary:hover { background: #edf4fc; color: #06458a; }
.auth-actions { display: grid; gap: .75rem; margin-top: 1.5rem; }
.auth-link-form { margin-top: 1rem; text-align: center; }
.auth-link-form button { width: auto; min-height: 2.75rem; padding: .5rem; background: transparent; color: var(--auth-muted); border-color: transparent; font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.auth-link-form button:hover { background: #edf4fc; }
.auth-back, .back { display: block; text-align: center; margin: 1.5rem 0 0; font-size: .9rem; }
.auth-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem .75rem; margin-top: auto; padding-top: 3.5rem; color: var(--auth-muted); font-size: .875rem; text-align: center; }
.auth-footer strong { font-weight: 650; }
.auth-footer strong::after { content: '|'; padding-left: .75rem; font-weight: 400; }
.auth-password-toggle { position: absolute; inset: .35rem .35rem .35rem auto; width: 2.75rem; min-height: 2.75rem; padding: .65rem; border: 0; background: transparent; color: #415b7d; }
.auth-password-toggle:hover { background: #edf4fc; color: var(--auth-blue); }
.auth-password-toggle svg, .auth-login-button svg, .auth-mfa-hint svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.auth-eye-slash { display: none; }
.auth-password-toggle[aria-pressed=true] .auth-eye-slash { display: block; }
.auth-login-button { min-height: 3.65rem; gap: .8rem; font-size: 1.15rem; font-weight: 600; }
.auth-mfa-hint { display: flex; gap: .6rem; margin: 1rem 0 0; color: var(--auth-muted); font-size: .8rem; line-height: 1.5; }
.auth-mfa-hint svg { flex: 0 0 1.1rem; width: 1.1rem; margin-top: .1rem; }
.auth-login-help { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .85rem; margin-top: 3rem; font-size: .875rem; color: var(--auth-muted); }
.auth-environment { position: absolute; top: 1.5rem; right: 2rem; border: 1px solid #cfdbeb; border-radius: 1rem; padding: .2rem .7rem; color: var(--auth-muted); font-size: .75rem; letter-spacing: .03em; }
.auth-decoration { position: absolute; z-index: -1; width: 17rem; height: 17rem; right: -8rem; bottom: 2.5rem; color: #e7f1fe; pointer-events: none; }
.auth-notice { margin: 0 0 1.35rem; padding: 1rem; border: 1px solid #c9ddf4; border-radius: .4rem; background: #f0f6fd; font-size: .9rem; }
.auth-notice p:last-child { margin-bottom: 0; }
.auth-error { border-color: #e6b6bd; background: #fff3f4; color: var(--auth-error); }
.auth-success { border-color: #b5dccb; background: #eff9f4; color: #185e42; }
.errorlist { color: var(--auth-error); margin: .4rem 0 .75rem; padding-left: 1.2rem; font-size: .875rem; }
.helptext, .auth-help, .muted { color: var(--auth-muted); font-size: .875rem; }
.auth-help { margin: .45rem 0 1rem; }
.helptext ul { padding-left: 1.2rem; }
.auth-qr { display: flex; justify-content: center; padding: 1rem; margin: 1rem 0; background: #fff; border: 1px solid var(--auth-border); border-radius: .5rem; }
.auth-qr svg, .auth-qr img { display: block; width: 13.5rem; height: 13.5rem; max-width: 100%; }
.auth-manual-key { margin: 0 0 1.5rem; font-size: .875rem; }
.auth-manual-key summary { cursor: pointer; color: var(--auth-blue); padding: .4rem 0; }
.auth-secret { display: block; margin: .65rem 0; padding: .75rem; border-radius: .3rem; background: #edf2f8; font-size: .95rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.auth-code { font-variant-numeric: tabular-nums; letter-spacing: .2em; font-size: 1.35rem !important; }
.auth-recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: 0; margin: 1.4rem 0; list-style: none; }
.auth-recovery-grid li { padding: .65rem .4rem; text-align: center; border: 1px solid var(--auth-border); border-radius: .35rem; background: #fff; font: .9rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.auth-status { display: grid; grid-template-columns: 1fr auto; gap: .65rem; margin: 1.25rem 0; padding: 1rem 0; border-block: 1px solid var(--auth-border); font-size: .9rem; }
.auth-status dt, .auth-status dd { margin: 0; }
.auth-status dt { color: var(--auth-muted); }
.auth-status dd { text-align: right; font-weight: 650; }
.auth-status.mfa-confirmation-identity { grid-template-columns: minmax(7rem, 1fr) minmax(0, 2fr); }
@media (max-width: 600px) {
  .auth-status.mfa-confirmation-identity { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .auth-status.mfa-confirmation-identity dd { text-align: left; margin-bottom: .75rem; }
}
.auth-skip { position: absolute; z-index: 10; left: 1rem; top: -10rem; padding: .75rem 1rem; background: #fff; border-radius: .3rem; }
.auth-skip:focus { top: 1rem; }
[hidden] { display: none !important; }
@media (max-width: 1100px) { .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(27rem, 46%); } .auth-panel { padding: 3.5rem 2rem 1.75rem; } }
@media (max-height: 900px) and (min-width: 761px) { .auth-panel { padding-top: 3.25rem; padding-bottom: 2rem; } .auth-brand { margin-bottom: 2rem; } }
@media (max-width: 760px) { .auth-layout { display: block; } .auth-hero { display: none; } .auth-panel { min-height: 100vh; min-height: 100svh; padding: 3.5rem 1.5rem 1.5rem; } .auth-brand { margin-bottom: 2rem; } .auth-brand-logo { width: 10rem; } .auth-brand-description { font-size: 1rem; } .auth-footer { padding-top: 2.5rem; } .auth-environment { top: 1rem; right: 1rem; } .auth-login-help { margin-top: 2rem; } }
@media (max-width: 360px) { .auth-panel { padding-inline: 1rem; } .auth-form-options { align-items: flex-start; flex-direction: column; } .auth-recovery-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
