
/* ── tokens ────────────────────────────────────────────────────────────── */
:root {
  --auth-surface: #fff;
  --auth-fg: oklch(0.1804 0.0038 229.04);
  --auth-fg-2: oklch(0.4909 0.0177 260.71);
  --auth-muted: oklch(0.5262 0.0140 259.82);
  --auth-border: oklch(0.937 0 89.88);
  --auth-border-strong: oklch(0.8452 0 89.88);
  --auth-accent: oklch(0.5409 0.1909 259.17);
  --auth-accent-hover: oklch(0.4978 0.1721 258.85);
  --auth-accent-soft: oklch(0.9532 0.0207 261.77);
  --auth-ready: oklch(0.470 0.080 195);
  --auth-crit: oklch(0.478 0.168 342);
  --auth-warn: oklch(0.500 0.115 300);
  --auth-ctl: 46px;
  --auth-radius: 10px;
  --auth-field: 440px;
  --auth-ease: cubic-bezier(.4,0,.2,1);
}

/* ── base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body, 'Geist', ui-sans-serif, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--auth-fg);
  background: var(--auth-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, table { margin: 0; }
a { color: inherit; }
img { display: block; }
button, input { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 2px; }

/* ── the split frame ───────────────────────────────────────────────────── */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  height: auto;
  min-height: 100dvh;
  width: 100%;
}

/* Form pane (left) */
.auth-form-col {
  position: relative;
  display: grid;
  place-items: center;
  padding: 96px 40px 88px;
  background: var(--auth-surface);
  overflow-y: auto;
}
.auth-form-col::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, oklch(0.985 0.004 260) 0%, transparent 62%);
}
.auth-logo-bar {
  position: absolute; top: 26px; left: 32px; z-index: 2; padding: 0;
}
.auth-logo-lockup { display: inline-flex; align-items: center; gap: 9px; }
.auth-logo-lockup img { height: 21px; width: auto; flex: none; }
.auth-logo-lockup span {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-weight: 700; font-size: 16px; letter-spacing: -0.03em; color: var(--auth-fg);
}
.auth-form-center {
  position: relative; z-index: 1;
  display: flex; justify-content: center;
  width: 100%; padding: 0;
}
.auth-form-inner {
  width: 100%; max-width: var(--auth-field);
  display: flex; flex-direction: column; gap: 20px;
}

.auth-footer {
  position: absolute; left: 32px; right: 32px; bottom: 20px; z-index: 2;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 20px; padding: 0; font-size: 12px; color: var(--auth-muted);
}
.auth-footer a, .auth-footer-btn {
  color: var(--auth-muted); text-decoration: none;
}
.auth-footer a:hover, .auth-footer-btn:hover {
  color: var(--auth-fg); text-decoration: underline; text-underline-offset: 2px;
}
.auth-footer-links {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.auth-legal-dot { color: oklch(0.78 0 0); }
.auth-footer-btn {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}

/* ── the heading block ─────────────────────────────────────────────────── */
.auth-title {
  margin: 0 0 7px;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 28px; font-weight: 800; line-height: 1.16;
  letter-spacing: -0.025em; color: var(--auth-fg);
}
.auth-subtitle {
  margin: 0 0 8px;
  font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--auth-fg-2);
}
.auth-h2 {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 18px; font-weight: 700; color: var(--auth-fg);
  letter-spacing: -0.015em; line-height: 1.3; margin: 0;
}
.auth-h2--spaced { margin-bottom: 20px; }
.auth-lead { margin: 0 0 20px; font-size: 14px; color: var(--auth-fg-2); line-height: 1.55; }
.auth-hint { margin: 0; font-size: 12px; line-height: 1.5; color: var(--auth-muted); }

/* ── notices and alerts ────────────────────────────────────────────────── */
.auth-notice {
  padding: 11px 13px; font-size: 13px; line-height: 1.5;
  color: var(--auth-fg); background: var(--auth-accent-soft);
  border: 1px solid color-mix(in oklch, var(--auth-accent) 22%, transparent);
  border-radius: var(--auth-radius);
}
.auth-notice p { margin: 0; }
.auth-notice p + p { margin-top: 4px; }
.auth-protected {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 13px; font-size: 13px; line-height: 1.5;
  background: var(--auth-accent-soft);
  border: 1px solid color-mix(in oklch, var(--auth-accent) 20%, transparent);
  border-radius: var(--auth-radius);
}
.auth-protected-title { margin: 0; font-weight: 600; color: var(--auth-fg); }
.auth-protected-lock { display: inline-flex; vertical-align: -2px; margin-right: 2px; }
.auth-protected-body { margin: 0; color: var(--auth-fg-2); }

.auth-alert {
  padding: 12px 14px; font-size: 13px; line-height: 1.5;
  border-radius: var(--auth-radius); border: 1px solid transparent;
}
.auth-alert--error {
  color: var(--auth-crit);
  background: color-mix(in oklch, var(--auth-crit) 7%, #fff);
  border-color: color-mix(in oklch, var(--auth-crit) 24%, transparent);
}
.auth-alert--success {
  color: oklch(0.395 0.068 195);
  background: oklch(0.962 0.022 195);
  border-color: color-mix(in oklch, var(--auth-ready) 24%, transparent);
}
.auth-alert--info {
  color: oklch(0.400 0.100 258);
  background: var(--auth-accent-soft);
  border-color: color-mix(in oklch, var(--auth-accent) 22%, transparent);
}
.auth-alert--warning {
  color: oklch(0.420 0.090 300);
  background: oklch(0.968 0.021 300);
  border-color: color-mix(in oklch, var(--auth-warn) 26%, transparent);
}

/* ── the form ──────────────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 17px; margin: 0; }
.auth-field-label {
  display: block; margin-bottom: 7px;
  font-size: 13px; font-weight: 600; color: var(--auth-fg);
}
.auth-field-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 7px;
}
.auth-field-label-row .auth-field-label { margin: 0; }
.auth-forgot-link {
  font-size: 12.5px; font-weight: 600; color: var(--auth-accent); text-decoration: none;
}
.auth-forgot-link:hover { color: var(--auth-accent-hover); text-decoration: underline; text-underline-offset: 2px; }

/* The wrapper owns the only border; the input stays borderless inside it. */
.auth-field-wrap {
  display: flex; align-items: center;
  height: var(--auth-ctl); width: 100%;
  background: var(--auth-surface);
  border: 1px solid var(--auth-border-strong);
  border-radius: var(--auth-radius);
  transition: border-color .12s var(--auth-ease), box-shadow .12s var(--auth-ease);
}
.auth-field-wrap:focus-within {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--auth-accent) 15%, transparent);
}
.auth-field-icon { display: flex; flex: none; padding-left: 12px; color: var(--auth-muted); }
.auth-field-icon svg { width: 16px; height: 16px; }
.auth-field-input {
  flex: 1; min-width: 0; height: 100%;
  padding: 0 12px; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 15px; font-weight: 400; color: var(--auth-fg);
}
/* The panel stylesheet's base layer still targets input[type=…] with a
   border, a surface background and a 34px height. Auth loads that sheet too,
   and input[type=…] (0,1,1) outranks the plain class rule above. This
   wrapper-qualified selector is deliberately more specific so the control
   keeps ONE border: the wrapper's. */
.auth-field-wrap input.auth-field-input,
.auth-shell .auth-form-inner .auth-form .auth-field-wrap input.auth-field-input,
.auth-shell .auth-form-inner .password-form .auth-field-wrap input.auth-field-input {
  height: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.auth-field-wrap .auth-field-icon + input.auth-field-input { padding-left: 8px; }
.auth-field-input:focus-visible { outline: none; }
.auth-field-input::placeholder { color: oklch(0.62 0.012 260); }
.auth-pw-toggle {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 100%; padding: 0; border: 0;
  background: transparent; color: var(--auth-muted); cursor: pointer;
}
.auth-pw-toggle:hover { color: var(--auth-fg-2); }
.auth-pw-toggle svg { width: 17px; height: 17px; }

.auth-submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: var(--auth-ctl); margin-top: 2px; padding: 0 18px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  color: #fff; background: var(--auth-accent);
  border: 1px solid color-mix(in oklch, var(--auth-accent) 88%, black);
  border-radius: var(--auth-radius); cursor: pointer;
  box-shadow: 0 1px 1px rgba(16,18,19,.1), 0 2px 6px -1px rgba(26,104,219,.28);
  transition: background .15s var(--auth-ease), transform .04s;
  text-decoration: none;
}
.auth-submit-btn:hover { background: var(--auth-accent-hover); }
.auth-submit-btn:active { transform: translateY(.5px); }
.auth-submit-btn[disabled] { opacity: .82; cursor: default; }
.auth-submit-btn--outline {
  color: var(--auth-fg); background: transparent;
  border: 1.5px solid var(--auth-border-strong); box-shadow: none;
}
.auth-submit-btn--outline:hover { background: #fafafa; }
.auth-submit-btn svg { width: 16px; height: 16px; }

.auth-passkey-hint {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 42px; margin-top: 0; padding: 0 14px;
  border: 1px solid var(--auth-border-strong); border-radius: var(--auth-radius);
  background: transparent; color: var(--auth-fg-2);
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
.auth-passkey-hint:hover {
  border-color: var(--auth-accent); color: var(--auth-accent);
  background: oklch(0.985 0.008 260);
}
.auth-passkey-hint svg { width: 16px; height: 16px; }
.auth-passkey-hint[disabled] { opacity: .82; cursor: default; }

.auth-link-text {
  margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--auth-fg-2);
}
.auth-link-text a { font-weight: 600; color: var(--auth-accent); text-decoration: none; }
.auth-link-text a:hover { text-decoration: underline; text-underline-offset: 2px; }

.auth-consent {
  display: flex; align-items: flex-start; justify-content: center; gap: 8px;
  cursor: pointer; font-size: 12.5px; line-height: 1.55;
  color: var(--auth-muted); text-align: left;
}
.auth-consent a { color: var(--auth-fg-2); text-decoration: underline; text-underline-offset: 2px; }
.auth-consent-box { margin-top: 3px; flex: none; }

/* ── provider row ──────────────────────────────────────────────────────── */
.auth-provider-block { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.auth-sso-row { display: flex; gap: 10px; }
.auth-sso-btn {
  flex: 1; height: var(--auth-ctl); display: flex; align-items: center; justify-content: center;
  background: var(--auth-surface); border: 1px solid var(--auth-border-strong);
  border-radius: var(--auth-radius); cursor: pointer; transition: background .12s;
}
.auth-sso-btn:hover { background: #fafafa; }
.auth-divider { display: flex; align-items: center; gap: 12px; }
.auth-divider-line { flex: 1; height: 1px; background: var(--auth-border); }
.auth-divider-text { font-size: 12px; color: var(--auth-muted); font-weight: 500; }

/* ── the brand pane (right) ────────────────────────────────────────────── */
.auth-panel {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  width: 100%; max-width: none; min-height: 100%;
  overflow: hidden; color: #fff;
  padding: clamp(26px, 3.2vw, 44px) clamp(28px, 3.4vw, 48px) clamp(24px, 2.6vw, 34px);
  background:
    linear-gradient(180deg, rgba(8,12,28,.42) 0%, rgba(8,12,28,0) 30%, rgba(8,12,28,0) 58%, rgba(8,12,28,.66) 100%),
    url('/auth-assets/auth-bg.jpg') center/cover no-repeat;
}
.auth-panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 44% at 58% 34%, rgba(120,182,255,.18), transparent 70%);
}
.auth-panel-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 58% 42%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 58% 42%, #000 0%, transparent 72%);
}
.auth-panel-lockup { position: relative; z-index: 3; align-self: flex-start; }
.auth-panel .auth-logo-lockup span { color: #fff; }
.auth-panel .auth-logo-lockup img { filter: brightness(0) invert(1); }

.auth-panel-deck {
  position: relative; z-index: 2; flex: 1;
  display: grid; place-items: center;
  padding: 8px 0; min-height: 280px;
}
.auth-panel-deck-inner {
  position: relative; display: grid;
  width: 100%; max-width: 560px;
  height: min(46vh, 410px); min-height: 280px;
}
.auth-deck-card {
  grid-area: 1 / 1; align-self: center;
  display: flex; flex-direction: column; width: 100%;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: #0b0f1a; pointer-events: none;
  box-shadow: 0 44px 84px -26px rgba(0,5,27,.72), 0 0 0 1px rgba(255,255,255,.05);
  transform-origin: center;
  transition: transform .9s cubic-bezier(.22,.61,.36,1), opacity .9s ease, filter .9s ease;
}
.auth-deck-card[data-pos="0"] {
  transform: perspective(1700px) rotateY(-9deg) rotateX(3deg);
  opacity: 1; filter: none; z-index: 30;
}
.auth-deck-card[data-pos="1"] {
  transform: perspective(1700px) translate(8%,-7%) rotateY(-9deg) rotateX(3deg) scale(.93);
  opacity: .55; filter: blur(1.5px); z-index: 20;
}
.auth-deck-card[data-pos="2"] {
  transform: perspective(1700px) translate(-5%,9%) rotateY(-9deg) rotateX(3deg) scale(.87);
  opacity: .3; filter: blur(3px); z-index: 10;
}
.auth-deck-chrome {
  flex: none; height: 29px; display: flex; align-items: center; gap: 6px;
  padding: 0 12px; background: rgba(255,255,255,.065);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.auth-deck-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); }
.auth-deck-screen {
  aspect-ratio: auto; height: clamp(210px, 30vh, 300px);
  overflow: hidden; background: #fff;
}
.auth-deck-screen img {
  width: 100%; height: auto; object-fit: cover; object-position: top left;
}
.auth-panel-chip-stack {
  position: absolute; left: -22px; bottom: 2px; z-index: 40; display: grid;
}
.auth-panel-chip {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(14,18,32,.74); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 32px -12px rgba(0,0,0,.72);
  font-size: 13px; font-weight: 500;
  opacity: 0; transition: opacity .5s ease;
}
.auth-panel-chip[data-active="true"] { opacity: 1; }
.auth-panel-chip-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--auth-ready);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--auth-ready) 30%, transparent);
}

.auth-panel-value { position: relative; z-index: 3; }
.auth-panel-copy-stack { display: grid; }
.auth-panel-copy { grid-area: 1 / 1; opacity: 0; transition: opacity .5s ease; }
.auth-panel-copy[data-active="true"] { opacity: 1; }
.auth-panel-stat { display: flex; align-items: baseline; gap: 11px; margin-bottom: 9px; }
.auth-panel-stat-number {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 34px; font-weight: 800; line-height: 1;
  letter-spacing: -0.03em; color: oklch(0.80 0.12 245);
}
.auth-panel-stat-label { font-size: 13.5px; color: rgba(255,255,255,.68); }
.auth-panel-tagline {
  margin: 0; max-width: 470px;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-weight: 600; font-size: 19px; line-height: 1.4;
  letter-spacing: -0.012em; color: #fff; text-wrap: balance;
}
.auth-panel-controls {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-top: 22px;
}
.auth-panel-pager { display: flex; align-items: center; gap: 7px; }
.auth-panel-pager-dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.3);
  transition: width .35s var(--auth-ease), background .35s var(--auth-ease);
}
.auth-panel-pager-dot[aria-current="true"] {
  width: 22px; background: oklch(0.80 0.12 245);
}
.auth-panel-arrows { display: flex; gap: 8px; flex: none; }
.auth-panel-arrow {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,.18); background: rgba(10,14,26,.26);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .12s, border-color .12s;
}
.auth-panel-arrow:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34); }
.auth-panel-arrow svg { width: 15px; height: 15px; }

/* ── the account-security body ─────────────────────────────────────────── */
.auth-shell--account .auth-form-col {
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; padding: 104px 40px 28px;
  min-height: 100dvh; overflow-y: auto;
}
.auth-shell--account .auth-form-center { flex: 1; align-items: center; }
.auth-shell--account .auth-form-inner { max-width: var(--auth-field); margin-block: auto; }
.auth-shell--account .auth-footer { position: static; margin-top: 26px; width: 100%; }
.auth-shell--account .auth-subtitle { margin-bottom: 0; }

.sec-email { color: var(--auth-fg); font-weight: 500; white-space: nowrap; }
.sec-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .005em; white-space: nowrap;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--verified {
  color: oklch(0.395 0.068 195); background: oklch(0.962 0.022 195);
  border: 1px solid color-mix(in oklch, var(--auth-ready) 24%, transparent);
}
.status--neutral {
  color: oklch(0.440 0.014 250); background: oklch(0.965 0.003 260);
  border: 1px solid var(--auth-border);
}
.sec-notice {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 0; padding: 11px 13px;
  border-radius: var(--auth-radius);
  border: 1px solid color-mix(in oklch, var(--auth-ready) 22%, transparent);
  background: oklch(0.969 0.017 195); color: oklch(0.360 0.058 195);
  font-size: 13px; line-height: 1.5; font-weight: 500;
}
.sec-notice svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--auth-ready); }

.sec-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px;
  margin-top: 0; padding-top: 18px; border-top: 1px solid var(--auth-border);
}
.sec-col { min-width: 0; }
.sec-section { padding: 18px 0; border-top: 1px solid var(--auth-border); }
.sec-col > .sec-section:first-child { border-top: 0; padding-top: 0; }
.sec-section:last-of-type { padding-bottom: 0; }
.sec-title {
  margin: 0;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-weight: 700; font-size: 16px; line-height: 1.3;
  letter-spacing: -0.015em; color: var(--auth-fg);
}
.sec-desc { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--auth-fg-2); }
.sec-section-body { margin-top: 14px; }

.rec {
  margin-top: 14px; padding: 13px 14px 14px; border-radius: var(--auth-radius);
  border: 1px solid color-mix(in oklch, var(--auth-warn) 26%, transparent);
  background: oklch(0.968 0.021 300);
}
.rec-label {
  margin-bottom: 5px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--auth-warn);
}
.rec p { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--auth-fg-2); }
.rec .auth-submit-btn { width: 100%; margin: 0; }

.passkey-add { display: flex; align-items: flex-end; gap: 10px; margin-top: 14px; }
.passkey-add .field-grow { flex: 1; min-width: 0; }
.passkey-add .auth-field-label-row { margin-bottom: 7px; }
.passkey-add .opt { color: var(--auth-muted); font-weight: 400; }
.auth-submit-btn--inline {
  width: auto; flex: none; margin: 0; padding: 0 17px;
}
.auth-submit-btn--inline svg { width: 16px; height: 16px; }

.passkey-list { margin-top: 14px; }
.passkey-empty {
  display: flex; align-items: center; gap: 8px; padding-top: 12px;
  border-top: 1px solid var(--auth-border); font-size: 13px; color: var(--auth-muted);
}
.passkey-empty svg { width: 15px; height: 15px; flex: none; }
.pk-item {
  display: flex; align-items: center; gap: 11px; padding: 12px 0;
  border-top: 1px solid var(--auth-border);
}
.pk-item:first-child { border-top: 0; padding-top: 0; }
.pk-icon {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  border-radius: 9px; background: var(--auth-accent-soft); color: var(--auth-accent);
}
.pk-icon svg { width: 17px; height: 17px; }
.pk-body { flex: 1; min-width: 0; }
.pk-name {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--auth-fg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pk-meta { display: block; margin-top: 1px; font-size: 12px; color: var(--auth-muted); }

.password-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.password-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.password-grid > .field-wrap { min-width: 0; }
.password-form .auth-submit-btn { margin-top: 0; }
.password-form .pk-error { margin: 0; }

.go-row { text-align: center; margin-top: 20px; }
.go-platform {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--auth-accent); text-decoration: none;
}
.go-platform:hover { text-decoration: underline; text-underline-offset: 2px; }
.go-platform svg { width: 14px; height: 14px; }

/* Kept for the authenticator, linked-account and error forms. */
.sec-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.sec-form--spaced { margin-top: 14px; }
.sec-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--auth-fg); }
.sec-input {
  width: 100%; height: var(--auth-ctl); padding: 0 12px;
  font-family: inherit; font-size: 15px; color: var(--auth-fg);
  background: var(--auth-surface); border: 1px solid var(--auth-border-strong);
  border-radius: var(--auth-radius); outline: none;
}
.sec-input:focus-visible {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--auth-accent) 15%, transparent);
}
.sec-btn {
  height: var(--auth-ctl); display: inline-flex; align-items: center; justify-content: center;
  width: 100%; font-family: inherit; font-size: 14px; font-weight: 600; color: #fff;
  background: var(--auth-accent); border: 0; border-radius: var(--auth-radius); cursor: pointer;
  transition: background .15s;
}
.sec-btn:hover { background: var(--auth-accent-hover); }
.sec-btn[disabled] { opacity: .82; cursor: default; }
.sec-btn--outline {
  width: auto; height: 36px; padding: 0 16px; font-size: 13px; color: var(--auth-fg);
  background: transparent; border: 1.5px solid var(--auth-border-strong);
  border-radius: 8px;
}
.sec-btn--outline:hover { background: #fafafa; }
.sec-save { margin-top: 10px; text-decoration: none; }
.sec-btn--danger {
  width: auto; height: 36px; padding: 0 16px; font-size: 13px; color: var(--auth-crit);
  background: transparent; border: 1.5px solid var(--auth-crit); border-radius: 8px;
}
.sec-btn--danger:hover { background: color-mix(in oklch, var(--auth-crit) 7%, #fff); }
.sec-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sec-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.sec-code {
  display: block; padding: 6px 10px; font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 13px; text-align: center; background: var(--auth-surface);
  border: 1px solid var(--auth-border-strong); border-radius: 6px; word-break: break-all;
}
.sec-code--info {
  text-align: left; margin: 8px 0;
  border-color: color-mix(in oklch, var(--auth-accent) 28%, transparent);
}
.sec-qr {
  display: block; width: 200px; max-width: 100%; height: auto; margin: 10px auto;
  border: 1px solid var(--auth-border-strong); border-radius: 6px;
}
.sec-details { margin-top: 8px; font-size: 12px; }
.sec-summary { cursor: pointer; font-weight: 600; }
.sec-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sec-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #fafafa; border-radius: var(--auth-radius);
}
.sec-row-name { font-size: 14px; font-weight: 600; color: var(--auth-fg); }
.sec-row-meta { font-size: 12px; color: var(--auth-muted); margin-left: 8px; }
.sec-empty { margin: 14px 0 0; font-size: 13px; color: var(--auth-muted); }
.sec-link {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px; font-size: 13px; font-weight: 600; color: #fff;
  background: var(--auth-fg); border-radius: 8px; text-decoration: none;
}
.sec-link:hover { opacity: .85; }
.sec-back { text-align: center; }
.sec-back a { font-size: 13px; font-weight: 500; color: var(--auth-muted); text-decoration: none; }
.sec-back a:hover { color: var(--auth-fg); }

/* ── the MFA screens (the reminder flow) ───────────────────────────────── */
/* The design's mfa body: no product panel, one centred column. */
.auth-shell--mfa { grid-template-columns: minmax(0, 1fr); }
.auth-shell--mfa .auth-form-col {
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; padding: 96px 40px 40px;
  height: auto; min-height: 100dvh; overflow-y: auto;
}
.auth-shell--mfa .auth-form-center { flex: 1; align-items: center; }
.auth-shell--mfa .auth-form-inner { max-width: 560px; margin-block: auto; }
.auth-shell--mfa.auth-shell--wide .auth-form-inner { max-width: 780px; }
.auth-shell--mfa .auth-title { font-size: 28px; }
.auth-shell--mfa .mfa-sub { max-width: 52ch; margin-bottom: 24px; }
.auth-shell--mfa .auth-footer { position: static; margin-top: 26px; width: 100%; }

.mfa-view[hidden], .mfa-view.is-inactive { display: none; }
.mfa-view:focus { outline: none; }
.mfa-email { color: var(--auth-fg); font-weight: 500; white-space: nowrap; }

.mfa-icon {
  width: 46px; height: 46px; display: grid; place-items: center; flex: none;
  border-radius: 13px; background: var(--auth-accent-soft);
  color: var(--auth-accent); margin-bottom: 16px;
}
.mfa-icon svg { width: 22px; height: 22px; }
.mfa-icon.is-ready {
  background: oklch(0.962 0.022 195); color: var(--auth-ready);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--auth-ready) 24%, transparent);
}
.mfa-kicker {
  margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--auth-accent);
}
.mfa-subhead {
  margin: 0 0 10px; font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--auth-fg);
}
.mfa-actions { display: flex; flex-direction: column; gap: 10px; }
.mfa-actions .auth-submit-btn { margin-top: 0; }
.mfa-actions--start { margin-top: 16px; }
.mfa-skip {
  display: block; text-align: center; padding: 7px 0; font-size: 13px; font-weight: 500;
  color: var(--auth-muted); text-decoration: none; border-radius: 8px;
}
.mfa-skip:hover { color: var(--auth-fg); background: #fafafa; }
.mfa-live { margin: 8px 0 0; min-height: 16px; font-size: 12px; color: var(--auth-muted); }

.qr-layout {
  display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 22px;
  align-items: center; margin: 2px 0 24px;
}
.qr-box {
  border: 1px solid var(--auth-border); border-radius: 12px; padding: 12px;
  background: var(--auth-surface); color: var(--auth-fg);
}
.qr-box svg { width: 100%; height: auto; display: block; }
.af-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--auth-fg); }
.qr-note { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--auth-muted); }
.key-row {
  display: flex; align-items: center; min-width: 0; height: 38px;
  border: 1px solid var(--auth-border-strong); border-radius: 8px;
  background: var(--auth-surface); overflow: hidden;
}
.key-code {
  flex: 1; min-width: 0; padding: 0 10px;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px;
  letter-spacing: .02em; color: var(--auth-fg-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.key-copy {
  height: 100%; flex: none; padding: 0 10px; border: 0;
  border-left: 1px solid var(--auth-border); background: #fafafa;
  color: var(--auth-accent); font-size: 12px; font-weight: 600; cursor: pointer;
}
.key-copy:hover { background: var(--auth-accent-soft); }

.mfa-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.mfa-form .af-control { display: block; }
.otp-input {
  width: 100%; height: var(--auth-ctl); padding: 0 12px;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 18px;
  letter-spacing: .38em; text-align: center; padding-left: calc(.38em + 12px);
  color: var(--auth-fg); background: var(--auth-surface);
  border: 1px solid var(--auth-border-strong); border-radius: var(--auth-radius);
  outline: none;
}
.otp-input:focus-visible {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--auth-accent) 15%, transparent);
}

.recovery-card {
  margin: 4px 0 24px; padding: 16px; border-radius: 12px;
  border: 1px solid color-mix(in oklch, var(--auth-warn) 26%, transparent);
  background: oklch(0.968 0.021 300);
}
.rec-kicker {
  margin: 0 0 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--auth-warn);
}
.rec-title { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--auth-fg); line-height: 1.4; }
.rec-copy { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--auth-fg-2); }
.recovery-codes {
  margin: 14px 0 12px; padding: 14px;
  border: 1px solid var(--auth-border); border-radius: 9px; background: var(--auth-surface);
  columns: 2; column-gap: 26px; white-space: pre-wrap;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px;
  line-height: 1.95; letter-spacing: .04em; color: var(--auth-fg-2);
}
.recovery-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 11px; border: 1px solid var(--auth-border); border-radius: 8px;
  background: var(--auth-surface); color: var(--auth-fg);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background .12s var(--auth-ease), border-color .12s var(--auth-ease);
}
.btn-line:hover { background: #fafafa; border-color: var(--auth-border-strong); }

.totp-panel {
  margin-top: 14px; border: 1px solid var(--auth-border); border-radius: 10px;
  background: var(--auth-surface);
}
.totp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--auth-border);
}
.totp-row:first-child { border-top: 0; }
.totp-row b { display: block; font-size: 13px; font-weight: 600; color: var(--auth-fg); line-height: 1.4; }
.totp-row span { display: block; margin-top: 1px; font-size: 12px; color: var(--auth-muted); line-height: 1.4; }
.totp-confirm { display: flex; align-items: center; gap: 8px; margin: 0; }
.totp-code {
  height: 32px; width: 170px; padding: 0 9px; font-family: inherit; font-size: 12.5px;
  color: var(--auth-fg); background: var(--auth-surface);
  border: 1px solid var(--auth-border-strong); border-radius: 8px; outline: none;
}
.totp-code:focus-visible {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--auth-accent) 15%, transparent);
}
.link-quiet, .link-danger {
  border: 0; background: none; padding: 2px 0; font-family: inherit;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.link-quiet { color: var(--auth-accent); }
.link-danger { color: var(--auth-crit); }
.link-quiet:hover, .link-danger:hover { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 900px) {
  .auth-shell--mfa .auth-form-col { padding: 88px 28px 32px; }
}
@media (max-width: 560px) {
  .auth-shell--mfa .auth-form-col { padding: 84px 20px 28px; }
  .auth-shell--mfa .auth-title { font-size: 26px; }
  .auth-shell--mfa .mfa-sub { margin-bottom: 20px; }
  .qr-layout { grid-template-columns: 1fr; gap: 16px; max-width: 280px; }
  .qr-box { max-width: 200px; }
  .recovery-codes { columns: 1; font-size: 12.5px; }
}

/* ── the legal documents ───────────────────────────────────────────────── */
.legal-page { min-height: 100vh; background: #f7f7f8; padding: 48px 16px; overflow-y: auto; }
.legal-wrap { max-width: 720px; margin: 0 auto; }
.legal-back-row { margin-bottom: 24px; }
.legal-back { color: var(--auth-accent); font-size: 14px; text-decoration: none; }
.legal-card {
  background: var(--auth-surface); border: 1px solid var(--auth-border); border-radius: 12px;
  padding: 40px 48px; color: var(--auth-fg); line-height: 1.65;
}
.legal-head { margin-bottom: 24px; border-bottom: 1px solid var(--auth-border); padding-bottom: 16px; }
.legal-title {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 28px; font-weight: 800; margin: 0 0 8px;
}
.legal-version { font-size: 13px; color: var(--auth-muted); margin: 0; }
.legal-footer { text-align: center; margin-top: 24px; font-size: 12px; color: var(--auth-muted); }
.legal-note { font-size: 13px; color: var(--auth-muted); margin-top: 24px; }
.legal-body h2 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; color: var(--auth-fg); }
.legal-body h3 { font-size: 15px; font-weight: 700; margin: 20px 0 6px; color: var(--auth-fg); }
.legal-body p { margin: 12px 0; font-size: 15px; }
.legal-body ul, .legal-body ol { margin: 12px 0; padding-left: 24px; }
.legal-body li { margin: 6px 0; font-size: 15px; }
.legal-body a { color: var(--auth-accent); text-decoration: underline; }
.legal-body table { border-collapse: collapse; margin: 16px 0; width: 100%; font-size: 14px; }
.legal-body th, .legal-body td { border: 1px solid var(--auth-border); padding: 8px 12px; text-align: left; vertical-align: top; }
.legal-body th { background: #fafafa; font-weight: 600; }

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .auth-shell { grid-template-columns: minmax(0, 58%) minmax(0, 42%); }
  .auth-panel-tagline { font-size: 18px; }
  .auth-panel-deck-inner { max-width: 500px; }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-form-col { min-height: 100dvh; padding: 104px 28px 92px; }
  .auth-form-col::before { background: radial-gradient(100% 46% at 50% 0%, oklch(0.955 0.023 258) 0%, transparent 72%); }
  .auth-footer { left: 28px; right: 28px; }
  .auth-shell--account .auth-form-col { padding: 96px 28px 28px; min-height: 100dvh; overflow: visible; }
}

@media (max-width: 560px) {
  .auth-form-col { padding: 92px 20px 84px; place-items: start center; }
  .auth-form-inner { padding-top: 24px; }
  .auth-logo-bar { left: 20px; top: 20px; }
  .auth-footer { left: 20px; right: 20px; bottom: 16px; font-size: 11.5px; gap: 10px; }
  .auth-footer-links { gap: 6px; }
  .auth-title { font-size: 26px; }
  .auth-subtitle { font-size: 14px; margin-bottom: 4px; }
  .auth-submit-btn { font-size: 14.5px; }
  .auth-field-input { font-size: 16px; }
  .password-grid { grid-template-columns: 1fr; }
  .passkey-add { flex-direction: column; align-items: stretch; }
  .auth-submit-btn--inline { width: 100%; }
  .sec-section { padding: 21px 0; }
  .auth-shell--account .auth-form-col { padding: 88px 20px 24px; }
  .auth-shell--account .auth-footer { margin-top: 28px; }
  .legal-card { padding: 24px; }
  .legal-title { font-size: 24px; }
}

@media (max-width: 1250px) {
  .auth-shell--account .auth-form-inner { max-width: var(--auth-field); }
}

@media (min-width: 1251px) {
  .auth-shell--account .auth-form-col { padding: 62px 40px 22px; }
  .auth-shell--account .auth-form-inner { max-width: 760px; }
  .auth-shell--account .auth-footer { margin-top: 18px; font-size: 11.5px; }
  .sec-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 34px; margin-top: 16px; padding-top: 17px;
  }
  .sec-section { padding: 16px 0; }
  .rec { padding: 11px 13px 12px; margin-top: 12px; }
  .rec p { margin-bottom: 9px; }
  .password-form { gap: 11px; margin-top: 12px; }
  .password-grid { gap: 10px; }
  .passkey-add { margin-top: 12px; }
  .passkey-list { margin-top: 12px; }
  .go-row { margin-top: 18px; }
}

@media (min-width: 1251px) and (max-height: 740px) {
  .auth-shell--account .auth-form-col { padding: 56px 40px 12px; }
  .auth-shell--account .auth-logo-bar { top: 22px; }
  .auth-shell--account .auth-form-inner { margin-block: 0; }
  .auth-shell--account .auth-footer { margin-top: 10px; font-size: 10.5px; }
  .sec-grid { margin-top: 12px; padding-top: 12px; }
  .sec-section { padding: 12px 0; }
  .sec-desc { font-size: 13px; line-height: 1.45; }
  .rec { margin-top: 10px; padding: 10px 12px 11px; }
  .rec p { font-size: 12.5px; line-height: 1.45; margin-bottom: 8px; }
  .password-form { gap: 9px; margin-top: 10px; }
  .password-grid { gap: 9px; }
  .passkey-add { margin-top: 10px; }
  .passkey-list { margin-top: 10px; }
  .go-row { margin-top: 14px; }
}

@media (max-height: 680px) and (min-width: 901px) {
  .auth-form-col { padding-top: 84px; padding-bottom: 76px; }
  .auth-title { font-size: 26px; }
  .auth-subtitle { margin-bottom: 2px; }
  .auth-form { gap: 14px; }
  .auth-passkey-hint { margin-top: 10px; }
  .auth-link-text { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
