:root { color-scheme: light; --navy: #182b4d; --focus-blue: #668bb6; --ink: #23324a; --muted: #657084; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; background: #f4f1eb; }
.login-shell { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 42px 20px; position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 0% 0%, #dce3eb 0%, transparent 55%), radial-gradient(ellipse at 100% 100%, #e9dfc8 0%, transparent 55%); }
.login-shell::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; border: 1px solid #c5a05230; border-radius: 50%; top: -310px; right: -160px; box-shadow: 0 0 0 64px #c5a0520a, 0 0 0 128px #c5a05208; pointer-events: none; }
.login-card { width: 100%; max-width: 460px; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid #ffffff; box-shadow: 0 24px 70px #182b4d16, 0 3px 12px #182b4d05; }
.login-brand { position: relative; padding: 28px 32px 30px; text-align: center; color: white; background: linear-gradient(125deg, #20385b, #14243f); border-bottom: 3px solid #8fa8cb; }
.login-logo { display: block; width: 88px; height: 88px; margin: 0 auto 20px; object-fit: contain; border-radius: 12px; flex: none; background: white; }
.company-name { margin: 0 0 9px; max-width: 100%; white-space: nowrap; font-size: clamp(12px, 3.4vw, 18px); font-weight: 500; line-height: 1.45; letter-spacing: .1px; }
h1 { margin: 0 0 14px; font-size: 32px; line-height: 1.2; font-weight: 500; letter-spacing: -.6px; }
svg { width: 19px; height: 19px; flex: none; fill: currentColor; }
.system-name { margin: 0; color: #bfcbdb; font-size: 12px; line-height: 1.5; }
.login-content { padding: 28px 32px 30px; }
.form-heading { margin-bottom: 25px; }
.form-heading h2 { margin: 0 0 6px; color: var(--navy); font-size: 22px; font-weight: 600; letter-spacing: -.4px; }
.form-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-form label { display: block; margin-bottom: 9px; color: #34435b; font-size: 13px; font-weight: 600; }
.input-group { display: flex; height: 49px; border: 1px solid #dce1e8; border-radius: 9px; margin-bottom: 21px; overflow: hidden; background: #fafbfd; transition: border-color .15s, box-shadow .15s; }
.input-group:focus-within { border-color: var(--focus-blue); box-shadow: 0 0 0 3px #668bb61f; }
.input-icon { display: grid; place-items: center; width: 43px; flex: none; color: #8a95a5; }
.input-icon svg { width: 16px; height: 16px; }
input { width: 100%; min-width: 0; padding: 10px 10px 10px 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; }
input::placeholder { color: #808a99; opacity: 1; font-size: 14px; }
.password-toggle { width: 46px; flex: none; padding: 0; border: 0; background: transparent; color: #7b8798; cursor: pointer; }
.password-toggle:hover { color: var(--navy); background: #edf0f5; }
.login-button { width: 100%; min-height: 49px; display: flex; flex-direction: row-reverse; align-items: center; justify-content: center; gap: 12px; padding: 12px; margin-top: 6px; border: 1px solid var(--navy); border-radius: 9px; background: var(--navy); color: white; font-size: 14px; font-weight: 600; letter-spacing: .2px; cursor: pointer; transition: background .15s, box-shadow .15s; }
.login-button svg { width: 17px; height: 17px; color: white; }
.login-button:hover { background: #263f64; box-shadow: 0 5px 16px #182b4d20; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus-blue); outline-offset: 3px; }
.login-footer { padding: 19px 24px 21px; text-align: center; background: #faf9f6; border-top: 1px solid #eeece7; font-size: 12px; }
.login-footer a { color: #4e5e75; text-decoration: none; }
.login-footer a:hover { color: var(--navy); text-decoration: underline; }
.login-footer p { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 11px 0 0; color: #707b8b; font-size: 11px; line-height: 1.4; }
.login-footer svg { width: 13px; height: 13px; }
.login-alert { padding: 13px 14px; margin-bottom: 22px; border: 1px solid #edc6c6; border-radius: 9px; background: #fff4f3; color: #9a3232; font-size: 13px; line-height: 1.6; }
.lockout-message { display: block; margin-top: 6px; }
.login-button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
@media (max-width: 480px) { .login-shell { padding: 24px 16px; } .login-brand { padding: 25px 24px; } .login-content { padding: 25px 24px; } .company-name { font-size: clamp(11px, 3.4vw, 15px); } h1 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Two-step verification */
.mfa-card { max-width: 490px; }
.mfa-brand { padding: 28px 32px; }
.mfa-brand-logo { display: block; width: 60px; height: 60px; margin: 0 auto 15px; border-radius: 12px; object-fit: cover; }
.mfa-brand h1 { margin: 0; font-size: clamp(22px, 5vw, 27px); font-weight: 600; }
.mfa-content { padding: 30px 34px 34px; }
.mfa-content h2 { margin: 0 0 9px; color: var(--navy); font-size: 22px; font-weight: 650; letter-spacing: -.4px; }
.mfa-description { margin: 0 0 23px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.mfa-setup-key { display: grid; gap: 7px; margin: 0 0 25px; padding: 15px 17px; border: 1px solid #dce4ef; border-radius: 12px; background: #f7f9fc; }
.mfa-setup-key span { color: #65758c; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.mfa-setup-key code { overflow-wrap: anywhere; color: #20385b; font-size: 14px; letter-spacing: .07em; }
.mfa-digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin: 4px 0 14px; }
.mfa-digit { height: 62px; min-width: 0; padding: 0; border: 1.5px solid #ccd6e3; border-radius: 12px; outline: 0; background: #fbfcfe; color: var(--navy); text-align: center; font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s, background .15s; }
.mfa-digit:hover { border-color: #9fb3ce; }
.mfa-digit:focus { border-color: #5478ae; box-shadow: 0 0 0 4px #668bb62b; background: #fff; }
.mfa-status { min-height: 19px; margin: 4px 0 0; color: #536780; font-size: 12px; line-height: 1.5; }
.mfa-text-button { display: block; margin: 9px auto 0; padding: 8px 4px; border: 0; background: transparent; color: #315f98; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mfa-text-button:hover { text-decoration: underline; }
.mfa-text-button:disabled { opacity: .5; cursor: default; }
.mfa-back { margin: 17px 0 0; text-align: center; font-size: 13px; }
.mfa-back a { color: #657084; text-decoration: none; }
.mfa-back a:hover { color: var(--navy); text-decoration: underline; }
.mfa-success-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 0 18px; border-radius: 15px; background: #e8f5ee; color: #208453; font-size: 25px; font-weight: 700; }
.mfa-recovery-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0 0 22px; padding: 0; list-style: none; }
.mfa-recovery-list li { padding: 10px; border: 1px solid #e0e5ec; border-radius: 8px; background: #f8fafc; text-align: center; }
.mfa-recovery-list code { color: #20385b; font-size: 12px; letter-spacing: .02em; }
.mfa-continue { text-decoration: none; }
@media (max-width: 480px) {
  .mfa-content { padding: 27px 22px 30px; }
  .mfa-digits { gap: 6px; }
  .mfa-digit { height: 54px; border-radius: 10px; font-size: 24px; }
  .mfa-recovery-list { gap: 7px; }
  .mfa-recovery-list code { font-size: 11px; }
}
