:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  min-height: 100vh; margin: 0; color: var(--ui-color-text); font-family: var(--ui-font-sans);
  background: linear-gradient(135deg, #0b3475 0%, #1558b8 47%, #edf4ff 47%, #f8fbff 100%);
}
button, input { font: inherit; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 520px); align-items: center; gap: 8vw; max-width: 1240px; margin: auto; padding: 52px; }
.auth-intro { color: #fff; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 72px; }
.auth-brand span, .auth-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #1858bc; background: #fff; font-weight: 900; box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.auth-brand strong { font-size: 12px; letter-spacing: .12em; }
.auth-kicker { margin: 0 0 12px; color: #bdd4ff; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.auth-intro h1 { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.12; letter-spacing: -.04em; }
.auth-intro > p:not(.auth-kicker) { max-width: 520px; margin: 24px 0; color: #dbe8ff; font-size: 15px; line-height: 1.7; }
.auth-security { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; }
.auth-security i { width: 8px; height: 8px; border-radius: 50%; background: #56e1a5; box-shadow: 0 0 0 4px rgba(86,225,165,.14); }
.auth-card { width: 100%; padding: 36px; border: 1px solid #dbe5f2; border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 28px 70px rgba(8,39,88,.22); }
.auth-card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.auth-card-heading p { margin: 0 0 2px; color: #6d7f97; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.auth-card h2 { margin: 0; color: #142c4d; font-size: 26px; }
.auth-mark { width: 48px; height: 48px; color: #fff; background: #2468d8; box-shadow: none; }
.auth-card form { display: grid; gap: 9px; }
.auth-card label { margin-top: 6px; color: #40536d; font-size: 12px; font-weight: 800; }
.auth-card input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cbd8e8; border-radius: 11px; outline: none; background: #fff; }
.auth-card input:focus { border-color: #5c91ec; box-shadow: 0 0 0 4px rgba(49,109,218,.12); }
.auth-submit { min-height: 48px; margin-top: 14px; border-radius: 11px; font-weight: 800; }
.auth-submit:disabled, .resend-button:disabled { cursor: wait; opacity: .65; }
.auth-alert { margin-bottom: 16px; padding: 11px 13px; border: 1px solid #f1b6b6; border-radius: 10px; color: #9d2929; background: #fff1f1; font-size: 12px; line-height: 1.45; }
.twofa-panel[hidden], .auth-alert[hidden], #loginForm[hidden] { display: none !important; }
.twofa-panel > p:not(.auth-kicker):not(.resendStatus) { margin: 9px 0 18px; color: #64748b; font-size: 13px; }
.auth-back { margin: -8px 0 24px -8px; color: #3567aa; }
.verify-code { text-align: center; font-size: 22px !important; font-weight: 800; letter-spacing: .2em; }
.resend-button { width: 100%; min-height: 42px; margin-top: 10px; }
.resendStatus { min-height: 18px; margin: 8px 0 0; color: #317052; text-align: center; font-size: 11px; }
.auth-help { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #e4ebf3; color: #7a899d; font-size: 11px; line-height: 1.55; }
@media (max-width: 820px) {
  body { background: linear-gradient(180deg, #104991 0, #1f68c7 34%, #f3f7fc 34%); }
  .auth-page { grid-template-columns: 1fr; gap: 28px; padding: 28px 18px; }
  .auth-intro { text-align: center; }
  .auth-brand { justify-content: center; margin-bottom: 24px; }
  .auth-intro h1 { font-size: 31px; }
  .auth-intro > p:not(.auth-kicker), .auth-security { display: none; }
  .auth-card { max-width: 520px; margin: auto; padding: 28px 22px; }
}
