/* ==========================================================================
   Pawnda — auth & onboarding pages (login, signup, onboarding-vet/owner).
   Self-contained: these pages load only this stylesheet. The palette mirrors
   the product: navy headings, blue primary actions, violet reserved for
   Pawnda-the-AI, green = verified/ok, amber = unverified, Inter, radii 8/12.
   ========================================================================== */

:root {
  --navy: #1b2a4a;
  --navy-2: #16223c;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --violet: #5b4dc7;
  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --green: #0f766e;
  --green-50: #ecfdf5;
  --green-200: #a7f3d0;
  --amber: #b45309;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --red: #dc2626;
  --red-50: #fef2f2;
  --red-200: #fecaca;
  --ink: #111827;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --ink-4: #9ca3af;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --bg: #f9fafb;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05), 0 1px 3px rgba(17, 24, 39, 0.07);
  --ring: 0 0 0 3px rgba(37, 99, 235, 0.16);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body.auth-page {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
:where(h1, h2, h3) { margin: 0; color: var(--navy); letter-spacing: -0.02em; line-height: 1.2; }
:where(p) { margin: 0; }
:where(ul, ol) { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Shell: navy brand panel (tablet/desktop) + form column
   -------------------------------------------------------------------------- */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(0, 3fr);
  min-height: 100vh;
}
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 48px;
  background: var(--navy);
  color: #fff;
}
.auth-brand-lockup {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.auth-brand-lockup img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6); }
.auth-brand-body { position: relative; z-index: 1; max-width: 26rem; }
.auth-brand h2 { color: #fff; font-size: clamp(1.55rem, 2.2vw, 2rem); line-height: 1.15; margin-bottom: 14px; }
.auth-brand-body > p { color: #b6c2d9; font-size: 15.5px; line-height: 1.6; }
.auth-trust { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.auth-trust li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #dbe3f0; line-height: 1.45; }
.auth-trust .icon { color: #6ee7b7; margin-top: 2px; }
.auth-brand-foot { position: relative; z-index: 1; font-size: 12.5px; color: #8b9ab8; }
.auth-brand-foot a { color: #b6c2d9; text-decoration: none; }
.auth-brand-foot a:hover { color: #fff; }
.auth-brand-motif { position: absolute; right: -150px; bottom: -170px; width: 480px; height: 480px; opacity: 0.1; pointer-events: none; }

.auth-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 48px 28px;
  background: #fff;
}
.auth-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.auth-topbar-brand { display: none; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.auth-topbar-brand img { width: 36px; height: 36px; border-radius: 9px; }
.auth-topbar-alt { margin-left: auto; font-size: 14px; color: var(--ink-2); text-align: right; }
.auth-topbar-alt a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--blue); font-weight: 600; text-decoration: none; }
.auth-topbar-alt a:hover { text-decoration: underline; }
.auth-signed-in { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; column-gap: 12px; margin-left: auto; font-size: 13px; color: var(--ink-3); text-align: right; }
.auth-signed-in strong { color: var(--ink); font-weight: 600; }
.auth-signed-in .link-button { font-size: 13px; }
.auth-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 0; }
.auth-stack { width: min(480px, 100%); display: flex; flex-direction: column; gap: 32px; }
.auth-stack-wide { width: min(760px, 100%); }
.auth-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 12.5px; color: var(--ink-3); }
.auth-foot a { display: inline-block; padding: 13px 0; margin: -13px 0; color: var(--ink-3); text-decoration: none; }
.auth-foot a:hover { color: var(--navy); }

/* --------------------------------------------------------------------------
   Progress header: 1 Account · 2 Verify email · 3 Profile
   -------------------------------------------------------------------------- */
.auth-steps { display: flex; align-items: center; }
.auth-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.auth-step + .auth-step::before { content: ""; flex: 0 0 auto; width: clamp(14px, 5vw, 48px); height: 1px; margin: 0 10px; background: var(--line-2); }
.auth-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}
.auth-step-num .icon { display: none; width: 14px; height: 14px; stroke-width: 2.5; }
.auth-step-label { display: flex; flex-direction: column; line-height: 1.2; }
.auth-step-sub { display: none; font-size: 11px; font-weight: 500; color: var(--ink-4); }
.auth-step.is-active { color: var(--navy); }
.auth-step.is-active .auth-step-num { background: var(--blue); border-color: var(--blue); color: #fff; }
.auth-step.is-done .auth-step-num { background: var(--green-50); border-color: var(--green-200); color: var(--green); }
.auth-step.is-done .auth-step-num .icon { display: block; }
.auth-step.is-done .auth-step-num .auth-step-n { display: none; }
.auth-step.is-skipped .auth-step-num { border-style: dashed; }
.auth-step.is-skipped .auth-step-sub { display: block; }
.auth-step.is-skipped.is-done .auth-step-num { background: var(--bg); border-color: var(--line-2); color: var(--ink-4); }

/* --------------------------------------------------------------------------
   Card heading + forms
   -------------------------------------------------------------------------- */
.auth-card { width: 100%; }
.auth-head { margin-bottom: 24px; }
.auth-head h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.auth-head p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.auth-head-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.auth-role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100); }
.auth-role-chip.is-owner { background: var(--green-50); color: var(--green); border-color: var(--green-200); }

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-label { font-size: 13.5px; font-weight: 600; color: #374151; }
.field-optional { font-weight: 400; color: var(--ink-3); }
.field-hint { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 15px;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--ink-4); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--red); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14); }
select.input {
  padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 84px; }
.input-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  height: calc(100% - 2px);
  min-width: 64px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.input-toggle:hover { color: var(--navy); background: #f3f4f6; }
.field-error { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--red); line-height: 1.4; }
.field-error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid var(--red-200);
  background: var(--red-50);
  font-size: 11px;
  font-weight: 700;
}
.field-error:empty, .field-success:empty, .form-error:empty, .form-success:empty { display: none; }
.field-success { font-size: 13.5px; color: var(--green); }
.form-error, .form-success { padding: 10px 12px; border-radius: var(--r-md); font-size: 13.5px; line-height: 1.45; }
.form-error { background: var(--red-50); border: 1px solid var(--red-200); color: #991b1b; }
.form-success { background: var(--green-50); border: 1px solid var(--green-200); color: var(--green); }

.pw-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 2px; }
.pw-rules li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); transition: color 0.15s; }
.pw-rules li::before { content: ""; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; }
.pw-rules li.is-met { color: var(--green); }
.pw-rules li.is-met::before {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / 10px no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--navy); background: var(--bg); }
.btn-block { width: 100%; }
.btn:disabled { cursor: default; opacity: 0.65; }
.btn .spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn-ghost .spinner { border-color: var(--line-2); border-top-color: var(--ink-2); }
.btn.is-loading { opacity: 0.85; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-button {
  border: 0;
  background: none;
  padding: 13px 0;
  margin: -13px 0;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.link-button:hover:not(:disabled) { text-decoration: underline; }
.link-button:disabled { color: var(--ink-4); cursor: default; }
.auth-terms { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.auth-terms a { color: var(--ink-2); font-weight: 600; }
.auth-switch { margin-top: 24px; text-align: center; font-size: 14px; color: var(--ink-2); }
.auth-switch a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--blue); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.auth-note { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* --------------------------------------------------------------------------
   Role comparison: table on tablet/desktop, two stacked cards on phones
   -------------------------------------------------------------------------- */
.role-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.role-table th, .role-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.role-table thead th { padding: 18px 16px 16px; background: var(--bg); text-align: center; }
.role-table thead th:first-child { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); vertical-align: bottom; }
.role-table thead th:nth-child(2), .role-table thead th:nth-child(3) { width: 28%; }
.role-name { display: block; font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.role-tag { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); white-space: normal; }
.role-table tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.role-table tbody td { text-align: center; color: var(--ink-2); }
.role-table tbody tr:last-child > * { border-bottom: 0; }
.role-table tfoot td { padding: 16px; border-top: 1px solid var(--line); border-bottom: 0; background: var(--bg); }
.role-table tfoot td:first-child { font-size: 12.5px; color: var(--ink-3); text-align: left; }
.role-table .btn { width: 100%; }
.tick { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-50); color: var(--green); border: 1px solid var(--green-200); vertical-align: middle; }
.tick .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.tick.is-off { background: var(--bg); border-color: var(--line); color: var(--ink-4); }
.cell-with { display: inline-flex; align-items: center; gap: 8px; text-align: left; font-size: 13px; color: var(--ink-2); }
.role-price { font-weight: 600; color: var(--ink); }
.dash { color: var(--ink-4); font-size: 16px; line-height: 1; }

.role-cards { display: none; flex-direction: column; gap: 14px; }
.role-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.role-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.role-card-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.role-card-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.role-card-list li.is-off { color: var(--ink-4); }
.role-card-list .tick { margin-top: -1px; }
.role-card-price { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; margin-bottom: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.role-card-price .role-price { color: var(--ink); }

/* --------------------------------------------------------------------------
   Verification code boxes
   -------------------------------------------------------------------------- */
.code-boxes { display: flex; gap: 8px; justify-content: space-between; }
.code-box {
  flex: 1 1 0;
  min-width: 0;
  height: 56px;
  padding: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: #fff;
  caret-color: var(--blue);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.code-box:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.code-box.is-filled { border-color: var(--ink-4); }
.code-boxes.is-invalid .code-box { border-color: var(--red); }
.verify-email { font-weight: 600; color: var(--ink); word-break: break-all; }

/* --------------------------------------------------------------------------
   Demo accounts table (local demo mode only)
   -------------------------------------------------------------------------- */
.demo-accounts { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.demo-accounts h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.demo-badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--amber-50); color: var(--amber); border: 1px solid var(--amber-200); }
.demo-accounts-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.demo-accounts-sub code { font-family: var(--mono); font-size: 12px; padding: 1px 5px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.demo-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.demo-table th { padding: 6px 8px; text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.demo-table td { height: 46px; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); line-height: 1.35; }
.demo-table th:first-child, .demo-table td:first-child { padding-left: 4px; }
.demo-table th:last-child, .demo-table td:last-child { padding-right: 4px; }
.demo-table tbody tr { cursor: pointer; }
.demo-table tbody tr:hover td { background: var(--blue-50); }
.demo-table tbody tr:focus-within td { background: var(--blue-50); }
.demo-fill { border: 0; background: none; padding: 13px 0; margin: -13px 0; font-size: 13.5px; font-weight: 600; color: var(--navy); text-align: left; cursor: pointer; white-space: nowrap; }
.role-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.role-pill-vet { background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100); }
.role-pill-owner { background: var(--green-50); color: var(--green); border: 1px solid var(--green-200); }

/* --------------------------------------------------------------------------
   Onboarding
   -------------------------------------------------------------------------- */
.onb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 32px; align-items: start; }
.onb-next { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.onb-next h2 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.onb-next p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.onb-pets { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 14px; }
.onb-pets li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.onb-pet-avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue-dark); font-size: 12px; font-weight: 700; }
.onb-pets small { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.onb-private { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.onb-private .icon { color: var(--green); margin-top: 2px; width: 16px; height: 16px; }
.onb-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.onb-list li { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); }
.onb-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--blue-50); color: var(--blue); }
.onb-icon.is-ai { background: var(--violet-50); color: var(--violet); }
.onb-icon.is-green { background: var(--green-50); color: var(--green); }
.onb-list strong { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 600; color: var(--ink); }
.onb-list p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.auth-ok-badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; background: var(--green-50); color: var(--green); border: 1px solid var(--green-200); }
.auth-ok-badge .icon { width: 24px; height: 24px; stroke-width: 2.5; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .auth-shell { grid-template-columns: 280px minmax(0, 1fr); }
  .auth-brand { padding: 32px 26px; gap: 32px; }
  .auth-brand-lockup img { width: 56px; height: 56px; border-radius: 14px; }
  .auth-brand h2 { font-size: 1.5rem; }
  .auth-brand-motif { width: 360px; height: 360px; right: -140px; bottom: -140px; }
  .auth-main { padding: 20px 24px 24px; }
  .onb-grid { grid-template-columns: 1fr; gap: 20px; }
  .role-table { font-size: 13.5px; }
  .role-table th, .role-table td { padding: 10px; }
  .role-table thead th { padding: 14px 10px 12px; }
  .role-table thead th:nth-child(2), .role-table thead th:nth-child(3) { width: 27%; }
  .role-name { font-size: 16px; }
  .role-price { font-size: 13px; }
  .cell-with { flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12.5px; }
}
@media (max-width: 767px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-topbar-brand { display: inline-flex; }
  .auth-main { padding: 12px 20px 20px; }
  .auth-content { padding: 24px 0 28px; justify-content: flex-start; }
  .auth-head h1 { font-size: 23px; }
  .auth-stack { gap: 26px; }
}
@media (max-width: 639px) {
  .role-table { display: none; }
  .role-cards { display: flex; }
}
@media (max-width: 480px) {
  .auth-topbar-alt-text { display: none; }
}
@media (max-width: 420px) {
  .auth-step { font-size: 12.5px; gap: 6px; }
  .auth-step + .auth-step::before { margin: 0 6px; }
  .auth-step-num { width: 26px; height: 26px; font-size: 12px; }
  .code-boxes { gap: 6px; }
  .code-box { height: 52px; font-size: 22px; }
  .demo-table thead { display: none; }
  .demo-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .demo-table td { display: block; height: auto; padding: 0; border: 0; }
  .demo-table td:nth-child(3) { grid-column: 1 / -1; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn .spinner { animation-duration: 1.4s; }
  .input, .btn, .code-box, .pw-rules li { transition: none; }
}

/* Website version in the footer: there for tracking deploys, not for reading. */
.auth-foot .site-version { opacity: .6; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
