:root {
  color-scheme: light;
  --page: #f6f8fb; --surface: #fff; --text: #172338; --muted: #5d6b7f;
  --border: #dfe5ed; --primary: #2459d5; --primary-hover: #1b46ac;
  --primary-soft: #eef3ff; --danger: #ae2830; --danger-surface: #fff2f2; --focus: #2459d5;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none; font-size: 16px; line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--page); color: var(--text); }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
[hidden] { display: none !important; }
svg { flex: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 3; padding: 12px; background: var(--surface); }
.skip-link:focus { top: 12px; }
.header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1200px; min-height: 80px; margin: auto; padding: 16px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 23px; font-weight: 700; letter-spacing: -.7px; }
.brand-light { font-weight: 400; margin-left: 3px; }
.brand-symbol { width: 36px; height: 36px; color: var(--primary); }
.header-divider { width: 1px; height: 24px; background: var(--border); }
.header-caption { color: var(--muted); font-size: 14px; }
.text-button { min-height: 44px; border: 0; background: none; color: var(--muted); padding: 8px 0; font-size: 14px; transition: color 180ms ease; }
.text-button:hover { color: var(--primary); }
.header-help { margin-left: auto; }
.header-help span { margin-left: 6px; }
.main { width: 100%; max-width: 1104px; margin: auto; padding: 40px 24px 56px; display: grid; gap: 40px; align-items: center; }
.intro { display: none; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; color: var(--primary); margin: 0 0 20px; }
h1 { font-size: 40px; line-height: 1.23; letter-spacing: -1.1px; font-weight: 650; margin: 0 0 20px; }
.intro-description { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 390px; margin: 0; }
.features { list-style: none; padding: 0; margin: 36px 0; display: grid; gap: 24px; }
.features li { display: flex; align-items: center; gap: 16px; }
.feature-icon { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); display: grid; place-items: center; color: var(--muted); flex: none; }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.features strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.features li div > span { display: block; font-size: 13px; color: var(--muted); }
.intro-note { color: var(--muted); font-size: 13px; padding-top: 24px; border-top: 1px solid var(--border); max-width: 370px; }
.login-card { width: 100%; max-width: 440px; margin: auto; background: var(--surface); padding: 28px 24px 0; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 5px 24px rgb(29 49 83 / 4%); overflow: hidden; }
.card-heading { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .9px; margin-bottom: 24px; }
.lock-icon { background: var(--primary-soft); color: var(--primary); border-radius: 6px; width: 28px; height: 28px; display: grid; place-items: center; }
.lock-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
h2 { margin: 0; font-size: 25px; line-height: 1.3; letter-spacing: -.45px; font-weight: 650; }
.card-description { color: var(--muted); font-size: 14px; margin: 12px 0 28px; line-height: 1.6; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
input { display: block; width: 100%; height: 52px; border: 1px solid #b7c2d1; border-radius: 6px; color: var(--text); background: var(--surface); padding: 12px 14px; transition: border-color 180ms ease, box-shadow 180ms ease; }
input::placeholder { color: #67768c; opacity: 1; }
input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(36 89 213 / 14%); }
input[aria-invalid="true"] { border-color: var(--danger); }
.field-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-feedback { min-height: 24px; }
.form-error { padding: 12px; margin: 16px 0; border: 1px solid #f3cbd0; border-radius: 6px; background: var(--danger-surface); color: var(--danger); font-size: 13px; line-height: 1.5; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--primary); border-radius: 6px; background: var(--primary); color: white; min-height: 48px; padding: 12px 16px; font-size: 14px; font-weight: 600; transition: background 180ms ease; }
#continue-button { width: 100%; }
.primary-button:hover { background: var(--primary-hover); }
.primary-button:disabled { opacity: .7; cursor: wait; }
.button-arrow { font-size: 19px; font-weight: 400; line-height: 1; }
.spinner { width: 17px; height: 17px; border: 2px solid rgb(255 255 255 / 35%); border-top-color: white; border-radius: 50%; animation: spin 800ms linear infinite; }
.access-help { display: block; margin: 8px auto 24px; color: var(--primary); }
.card-bottom { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 -24px; padding: 18px 16px; border-top: 1px solid var(--border); background: #fafbfd; color: var(--muted); font-size: 12px; }
.card-bottom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.footer { margin-top: auto; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: auto; padding: 16px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; align-items: center; color: var(--muted); font-size: 12px; }
.footer nav { display: flex; gap: 24px; }
.footer .text-button { font-size: 12px; }
.footer-caption { display: none; }
dialog { width: calc(100% - 40px); max-width: 440px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); box-shadow: 0 20px 60px rgb(10 20 40 / 20%); }
dialog::backdrop { background: rgb(15 23 42 / 45%); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-top h2 { font-size: 21px; }
.icon-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 10px; color: var(--muted); border: none; border-radius: 6px; background: transparent; }
.icon-button:hover { background: var(--page); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
#dialog-description { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 16px 0 24px; }
.dialog-done { margin-left: auto; min-width: 112px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 768px) {
  .main { padding-top: 64px; padding-bottom: 72px; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; }
  .intro { display: block; }
  .login-card { padding: 36px 32px 0; }
  .card-bottom { margin-left: -32px; margin-right: -32px; }
  .footer-inner { justify-content: flex-start; gap: 32px; }
  .footer-caption { display: block; margin-left: auto; }
}
@media (max-width: 767px) {
  .header-inner { min-height: 72px; gap: 16px; }
  .header-caption, .header-divider { display: none; }
  .header-help { font-size: 13px; }
}
@media (max-width: 374px) {
  .header-inner { padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand-symbol { width: 32px; height: 32px; }
  .main { padding-left: 16px; padding-right: 16px; }
  .login-card { padding-left: 20px; padding-right: 20px; }
  .card-bottom { margin-left: -20px; margin-right: -20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
