@font-face { font-family: "Geist"; src: url("../brand/fonts/Geist-Regular.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 400; }
@font-face { font-family: "Geist"; src: url("../brand/fonts/Geist-Bold.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 700; }
@font-face { font-family: "Manrope"; src: url("../brand/fonts/Manrope-Bold.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 700; }

/* Mirrored from web/src/shared/styles/tokens.css (this app cannot import that file, so the values are copied,
   not aliased -- keep them in sync by hand): --tfg-indigo/periwinkle/lilac/ivory/ink/line = --color-accent /
   --color-accent-2 / --color-accent-100 / --color-bg / --color-text / --color-divider; the status-* pairs =
   --color-{error,warning,info,success}-100/800; --radius-control/panel = --radius-md/lg. */
:root {
  --tfg-indigo: #40316b; --tfg-periwinkle: #8d83d4; --tfg-lilac: #eeebf7; --tfg-ivory: #faf8f3; --tfg-ink: #262035; --tfg-line: #d9d3e5;
  --tfg-font-heading: "Manrope", sans-serif; --tfg-font-body: "Geist", system-ui, sans-serif;
  --status-error-surface: #fbecea; --status-error-text: #7a1811; --status-warning-surface: #fff2dc; --status-warning-text: #6f3c0b;
  --status-info-surface: #eceaf9; --status-info-text: #373063; --status-success-surface: #e8f4eb; --status-success-text: #1a4f2b;
  --radius-control: 8px; --radius-panel: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--tfg-ivory); color: var(--tfg-ink); font-family: var(--tfg-font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2 { margin: 0; color: var(--tfg-indigo); font-family: var(--tfg-font-heading); font-weight: 700; letter-spacing: -.035em; line-height: 1.18; }
h1 { margin-bottom: 8px; font-size: clamp(1.75rem, 2vw, 2rem); }
p { margin: 0; }
a { color: var(--tfg-indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #302451; }
:focus-visible { outline: 3px solid var(--tfg-periwinkle); outline-offset: 3px; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(390px, 488px); align-items: stretch; background: var(--tfg-ivory); }
.auth-introduction { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; padding: clamp(32px, 7vw, 96px); background: var(--tfg-lilac); }
.auth-introduction-brand { display: block; width: fit-content; }
.auth-introduction-logo { display: block; width: 264px; height: auto; }
.auth-introduction-copy { max-width: 33rem; padding-bottom: clamp(8px, 6vh, 72px); }
.auth-eyebrow { margin-bottom: 16px; color: var(--tfg-indigo); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.auth-introduction-message { color: var(--tfg-indigo); font-family: var(--tfg-font-heading); font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.08; }
.auth-introduction-support { max-width: 28rem; margin-top: 20px; color: var(--tfg-ink); font-size: 18px; line-height: 1.5; }

.auth-card { align-self: center; width: min(100%, 488px); min-height: 100vh; margin: 0 auto; padding: clamp(32px, 5vw, 56px); background: var(--tfg-ivory); border-left: 1px solid var(--tfg-line); display: flex; flex-direction: column; gap: 20px; }
.auth-sub { color: #514a61; font-size: 16px; line-height: 1.5; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.auth-links { color: #5f586d; font-size: 14px; line-height: 1.5; }
.auth-links a { font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #70697d; font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--tfg-line); }
.auth-symbol { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; background: var(--tfg-lilac); }
.auth-symbol img { width: 36px; height: 36px; }

.field > label { display: block; margin-bottom: 6px; color: var(--tfg-ink); font-size: 14px; font-weight: 700; }
.input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bcb5cb; border-radius: var(--radius-control); background: #fff; color: var(--tfg-ink); caret-color: var(--tfg-indigo); font: inherit; font-size: 16px; line-height: 1.35; }
.input:hover { border-color: #766c8f; }
.input:focus { border-color: var(--tfg-indigo); box-shadow: 0 0 0 3px rgba(141, 131, 212, .34); outline: none; }
.field-validation-error, .validation-summary-errors { color: var(--status-error-text); font-size: 14px; }
.field-validation-error { display: block; margin-top: 5px; }
.validation-summary-errors { border-left: 3px solid var(--status-error-text); padding: 8px 12px; background: var(--status-error-surface); }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.checkbox { display: inline-flex; align-items: flex-start; gap: 9px; color: #514a61; cursor: pointer; font-size: 14px; line-height: 1.4; }
.checkbox input { width: 18px; height: 18px; margin: 0; accent-color: var(--tfg-indigo); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: var(--radius-control); cursor: pointer; font: 700 15px/1.25 var(--tfg-font-body); text-align: center; text-decoration: none; }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn-primary { background: var(--tfg-indigo); color: var(--tfg-ivory); }
.btn-primary:hover:not(:disabled) { background: #302451; color: #fff; }
.btn-primary:active:not(:disabled) { background: #262035; }
.btn-secondary { border-color: #aaa1bc; background: transparent; color: var(--tfg-indigo); }
.btn-secondary:hover:not(:disabled) { border-color: var(--tfg-indigo); background: var(--tfg-lilac); }
.btn-block { width: 100%; }

.banner { padding: 12px 14px; border-radius: var(--radius-control); font-size: 14px; line-height: 1.45; }
.banner-warning { background: var(--status-warning-surface); color: var(--status-warning-text); }
.banner-error { background: var(--status-error-surface); color: var(--status-error-text); }
.banner-info { background: var(--status-info-surface); color: var(--status-info-text); }
.banner-success { background: var(--status-success-surface); color: var(--status-success-text); }
.muted { color: #625b70; font-size: 14px; line-height: 1.5; }
code { border-radius: 4px; background: var(--tfg-lilac); color: var(--tfg-ink); font-size: .875em; padding: 2px 5px; }
.auth-steps { display: grid; gap: 8px; margin: 0; padding-left: 22px; }
.auth-key { overflow-wrap: anywhere; border: 1px solid var(--tfg-line); border-radius: var(--radius-control); background: var(--tfg-lilac); padding: 12px; color: var(--tfg-ink); font: 700 15px/1.5 ui-monospace, monospace; letter-spacing: .04em; user-select: all; }
.auth-uri { overflow-wrap: anywhere; font-size: 14px; }
.auth-qr { display: block; width: min(220px, 100%); height: auto; margin: 0 auto; border: 1px solid var(--tfg-line); border-radius: var(--radius-control); background: #fff; }
.input-code { font-variant-numeric: tabular-nums; letter-spacing: .18em; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recovery-codes code { border: 1px solid var(--tfg-line); padding: 9px; text-align: center; user-select: all; }

@media (max-width: 820px) {
  .auth-shell { display: block; background: var(--tfg-ivory); }
  .auth-introduction { min-height: auto; padding: 24px max(24px, calc((100vw - 488px) / 2)); }
  .auth-introduction-copy { display: none; }
  .auth-introduction-logo { width: 240px; }
  .auth-card { min-height: calc(100vh - 108px); border-top: 1px solid var(--tfg-line); border-left: 0; }
}
@media (max-width: 520px) {
  .auth-introduction { padding: 20px 24px; }
  .auth-card { min-height: calc(100vh - 101px); padding: 32px 24px; }
  .auth-actions > .btn { width: 100%; }
  .recovery-codes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
