/* auth.css: the signed-out pages (sign in, invitation). One stylesheet so the
   two front doors of the product always look like the same product.

   Layout: a navy brand panel beside a light canvas that carries one white card.
   On a phone the panel becomes a compact navy header and the card overlaps it.
   Palette and type follow the app: navy #0F2D5B, the Sky canvas, the flat 2D
   SW mark, the platform's native UI font. */

:root {
  --au-navy: #0F2D5B;
  --au-navy-dk: #0B2344;
  --au-navy-grad: var(--sw-gradient-navy, linear-gradient(180deg, #0F2D5B 0%, #0B2344 100%));
  --au-ink: #0F172A;
  --au-ink-2: #334155;
  --au-muted: #5B6B82;              /* 5.3:1 on white */
  --au-line: rgba(15, 45, 91, 0.16);
  --au-field: #F7FAFD;
  --au-canvas: #EEF4FB;
  --au-sky: #90CAF9;
  --au-accent: #1E88E5;
  --au-ok: #0F7B4A;
  --au-ok-bg: #E6F4EC;
  --au-low: #9A5B00;
  --au-low-bg: #FFF4E0;
  --au-out: var(--danger-700, #B91C1C);
  --au-out-bg: var(--danger-100, #FEE2E2);
  --au-out-bd: rgba(var(--danger-rgb, 220, 38, 38), 0.35);
  --au-ship: #5B3FD6;
  --au-ship-bg: #EFEBFF;
  --au-r: 12px;
  --au-r-card: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
  background: var(--au-canvas);
  color: var(--au-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Shell ─────────────────────────────────────────────────────────────── */
.au-shell { display: flex; min-height: 100vh; min-height: 100dvh; width: 100%; }

/* ── Brand panel ───────────────────────────────────────────────────────── */
.au-aside {
  position: relative;
  flex: 0 0 44%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  padding: 48px 56px 40px 64px;
  color: #fff;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(30, 136, 229, 0.22) 0%, transparent 55%),
    var(--au-navy-grad);
  overflow: hidden;
}
/* Faint dot grid: texture only, far below the text in contrast. */
.au-aside::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(160deg, transparent 20%, #000 90%);
          mask-image: linear-gradient(160deg, transparent 20%, #000 90%);
  pointer-events: none;
}
.au-aside > * { position: relative; }

.au-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.au-mark {
  display: block;
  width: 96px; height: 36px;
  background: url('sw-mark.png') left center / contain no-repeat;
  filter: brightness(0) invert(1);   /* the navy artwork, in white */
  flex: 0 0 auto;
}

.au-aside-mid { margin-top: clamp(24px, 4vh, 52px); max-width: 500px; }
.au-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--au-sky);
}
.au-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.au-aside-title {
  margin-top: 14px;
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.au-aside-title em { font-style: normal; color: var(--au-sky); }
.au-aside-lede { margin-top: 16px; font-size: 1.05rem; line-height: 1.6; color: rgba(255, 255, 255, 0.84); max-width: 44ch; }

/* Sign-in feature tiles: the same tile as the invitation steps, with an icon
   in place of the step number, so the two pages read as one family. */
.au-feats {
  list-style: none; margin-top: 36px; display: grid; gap: 14px; max-width: 440px;
  /* Equal rows, so a tile whose description wraps to two lines does not make
     its neighbours look like a different component. */
  grid-auto-rows: 1fr;
}
.au-feats li {
  /* The tiles share a row height, so the content sits centred in each one
     rather than riding the top edge of the taller ones. */
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.au-feat-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(144, 202, 249, 0.18); color: #fff; }
/* The app's own nav icons (assets/menu-icons), drawn white on the navy tile. */
.au-feat-ic img { width: 20px; height: 20px; display: block; filter: brightness(0) invert(1); }
.au-feats b { display: block; font-size: 0.95rem; font-weight: 800; }
.au-feats span:not(.au-feat-ic) { display: block; margin-top: 2px; font-size: 0.85rem; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }

/* Invitation steps (accept-invite) */
.au-steps {
  list-style: none; margin-top: 36px; display: grid; gap: 14px; max-width: 440px;
  counter-reset: au-step;
  /* Equal rows, the same as the sign-in tiles. */
  grid-auto-rows: 1fr;
}
.au-steps li {
  counter-increment: au-step;
  /* Centred in the row, the same as the sign-in tiles. */
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.au-steps li::before {
  content: counter(au-step);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.9rem;
  background: rgba(144, 202, 249, 0.18); color: #fff;
}
.au-steps li.is-now::before { background: #fff; color: var(--au-navy); }
.au-steps b { display: block; font-size: 0.95rem; font-weight: 800; }
.au-steps span { display: block; margin-top: 2px; font-size: 0.85rem; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }

.au-aside-foot {
  margin-top: auto; padding-top: 32px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; color: rgba(255, 255, 255, 0.72);
}
.au-aside-foot svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ── Main: canvas and card ─────────────────────────────────────────────── */
.au-main {
  /* Positioned above the brand panel: on a phone the card overlaps the navy
     header, and the header is itself positioned. */
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px 28px;
}
.card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--au-line);
  border-radius: var(--au-r-card);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 18px 44px rgba(15, 45, 91, 0.10);
  padding: 40px 40px 32px;
  margin: auto 0;
  animation: au-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes au-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: var(--au-ink); overflow-wrap: anywhere; }
.lede { margin-top: 8px; margin-bottom: 28px; font-size: 0.95rem; line-height: 1.55; color: var(--au-muted); }

label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--au-ink-2); margin-bottom: 8px; }
.field { position: relative; margin-bottom: 18px; }
.input-wrap { position: relative; }
.field-ic { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #7A8AA0; pointer-events: none; }
.field-ic svg { width: 18px; height: 18px; display: block; }
.field input[type="text"], .field input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--au-ink);
  background: var(--au-field);
  border: 1px solid var(--au-line);
  border-radius: var(--au-r);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.has-ic .input-wrap input { padding-left: 46px; }
.pw-wrap .input-wrap input { padding-right: 52px; }
.field input::placeholder { color: #8795A8; }
.field input:hover { border-color: rgba(15, 45, 91, 0.30); }
.field input:focus { outline: none; background: #fff; border-color: var(--au-navy); box-shadow: 0 0 0 4px rgba(15, 45, 91, 0.12); }
.field.invalid input { border-color: var(--au-out-bd); background: var(--au-out-bg); }

.toggle-eye {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 10px; cursor: pointer;
  color: #7A8AA0; transition: color 0.15s, background 0.15s;
}
.toggle-eye:hover { color: var(--au-navy); background: rgba(15, 45, 91, 0.06); }
.toggle-eye:focus-visible { outline: 2px solid var(--au-navy); outline-offset: -2px; }
.toggle-eye svg { width: 20px; height: 20px; display: block; }

.hint { margin-top: 6px; font-size: 0.78rem; color: var(--au-muted); }
.hint code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.74rem; background: #F1F5FA; border-radius: 4px; padding: 0.05rem 0.3rem; }

.au-btn, button[type="submit"] {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 1rem; font-weight: 800;
  color: #fff;
  background: var(--au-navy-grad);
  border: 0; border-radius: var(--au-r);
  box-shadow: 0 1px 2px rgba(11, 35, 68, 0.3), 0 8px 18px rgba(15, 45, 91, 0.22);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.15s, opacity 0.15s, filter 0.15s;
}
/* The arrow is drawn by CSS: login.js swaps the button's text while it works,
   and an icon in the markup would not survive that. */
.au-btn::after, button[type="submit"]::after {
  content: "";
  width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.au-btn:hover, button[type="submit"]:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 1px 2px rgba(11, 35, 68, 0.3), 0 12px 24px rgba(15, 45, 91, 0.28); }
.au-btn:active, button[type="submit"]:active { transform: none; }
.au-btn:focus-visible, button[type="submit"]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.35); }
button[type="submit"]:disabled { opacity: 0.6; cursor: progress; transform: none; filter: none; }
button[type="submit"]:disabled::after { display: none; }
.au-btn.secondary { color: var(--au-navy); background: #fff; border: 1px solid var(--au-line); box-shadow: none; }
.au-btn.secondary:hover { background: #F4F8FC; filter: none; }

.error {
  display: none; align-items: flex-start; gap: 10px;
  margin-bottom: 18px; padding: 12px 14px;
  font-size: 0.88rem; font-weight: 700; line-height: 1.4;
  color: var(--au-out); background: var(--au-out-bg);
  border: 1px solid var(--au-out-bd); border-radius: var(--au-r);
}
.error.show { display: flex; }
.error svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }

.caps { display: none; align-items: center; gap: 8px; margin: -6px 0 16px; font-size: 0.8rem; font-weight: 700; color: var(--au-low); }
.caps.show { display: flex; }
.caps svg { width: 15px; height: 15px; flex: 0 0 auto; }

.foot {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid #EDF1F6;
  display: flex; align-items: flex-start; justify-content: center; gap: 8px;
  font-size: 0.78rem; line-height: 1.5; color: var(--au-muted);
}
.foot svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; }
.foot p { margin: 0; }
.foot p a { color: var(--au-navy); font-weight: 700; }
.foot.foot-choices { margin-top: 10px; padding-top: 0; border-top: 0; flex-direction: column; align-items: center; gap: 0; }
.foot-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--au-navy); font-weight: 700; font-size: 0.86rem; text-decoration: none; }
.foot-link:hover { text-decoration: underline; }
.foot-link:focus-visible { outline: 2px solid var(--au-navy); outline-offset: 3px; border-radius: 4px; }
/* The way back is the quieter of the two choices. */
.foot-link.foot-back { gap: 6px; color: var(--au-muted); font-weight: 600; }
.foot-link.foot-back::before {
  content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.foot-link.foot-back:hover { color: var(--au-navy); }
.au-step-mfa .foot:not(.foot-choices) { margin-top: 14px; }

/* Two-factor code fields: one large, centred, evenly spaced entry, the way a
   code is read off an authenticator app. The left padding matches the letter
   spacing so the digits sit truly centred. */
.au-otp input[type="text"] {
  min-height: 60px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.32em;
  padding: 0.7rem 0 0.7rem 0.32em;
}
.au-otp input[type="text"]::placeholder { font-weight: 500; color: #B4C0CF; }
.au-otp-rec input[type="text"] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; letter-spacing: 0.1em; padding-left: 0.1em; }

/* Remember-this-browser choice on the two-factor step */
.au-check { display: flex; align-items: flex-start; gap: 12px; margin: 2px 0 22px; font-size: 0.9rem; font-weight: 600; color: var(--au-ink-2); line-height: 1.4; cursor: pointer; }
.au-check input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--au-navy); cursor: pointer; }
.au-check small { display: block; margin-top: 2px; font-size: 0.78rem; font-weight: 500; color: var(--au-muted); }

/* ── Invitation card pieces ────────────────────────────────────────────── */
.au-account {
  display: grid; gap: 10px;
  margin: 0 0 24px; padding: 14px 16px;
  background: #F4F8FC; border: 1px solid #E3ECF6; border-radius: 14px;
}
.au-account div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.au-account dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--au-muted); }
.au-account dd { font-size: 0.9rem; font-weight: 700; color: var(--au-ink); overflow-wrap: anywhere; }
.au-account dd.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.84rem; }
.au-reqs { list-style: none; display: grid; gap: 6px; margin: -4px 0 20px; }
.au-reqs li { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--au-muted); }
.au-reqs li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid #C7D3E2; background: #fff;
}
.au-reqs li.met { color: var(--au-ok); }
.au-reqs li.met::before {
  border-color: var(--au-ok);
  background: var(--au-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.au-consent { margin-top: 16px; font-size: 0.8rem; line-height: 1.55; text-align: center; color: var(--au-muted); }
.au-consent a { color: var(--au-navy); font-weight: 700; white-space: nowrap; }
.msg { margin-top: 14px; min-height: 1.1em; font-size: 0.86rem; font-weight: 700; }
.msg.err { color: var(--au-out); }
.au-state { text-align: center; padding: 8px 0 4px; }
.au-state-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.au-state-ic svg { width: 30px; height: 30px; }
.au-state-ic.ok { background: var(--au-ok-bg); color: var(--au-ok); }
.au-state-ic.bad { background: var(--au-out-bg); color: var(--au-out); }
.au-state h1 { font-size: 1.5rem; }
.au-state .lede { margin-bottom: 24px; }
.au-spinner { width: 36px; height: 36px; margin: 8px auto 16px; border-radius: 50%; border: 3px solid #DCE6F2; border-top-color: var(--au-navy); animation: au-spin 0.8s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }

/* ── Two-factor setup (mfa-setup.html) ────────────────────────────────── */
/* The page swaps steps with the hidden attribute; nothing here may override it. */
.au-page-mfa [hidden] { display: none !important; }
.au-btn-plain::after { display: none; }
.au-btn-plain { margin-top: 10px; }
.au-linkbtn { background: none; border: 0; font: inherit; cursor: pointer; padding: 0 8px; }
.au-linkbtn:disabled { opacity: 0.6; cursor: progress; }
.au-signout { margin-top: 14px; }
.au-signout .foot-link { color: var(--au-muted); font-weight: 600; }
.au-signout .foot-link:hover { color: var(--au-navy); }
/* Focus moves to the step heading so a screen reader announces the change;
   it is not an interactive control, so it draws no ring. */
.au-page-mfa h1:focus { outline: none; }
.au-loading { text-align: center; font-size: 0.92rem; color: var(--au-muted); }
.au-hint-block { margin: 0 0 12px; }
.au-hint-block:empty { display: none; }
.au-page-mfa .au-btn + .au-btn, .au-page-mfa .au-hint-block + .au-btn { margin-top: 6px; }

.au-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 18px; padding: 12px 14px;
  font-size: 0.86rem; font-weight: 600; line-height: 1.45;
  border-radius: var(--au-r); border: 1px solid transparent;
}
.au-note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.au-note.ok { color: var(--au-ok); background: var(--au-ok-bg); border-color: rgba(15, 123, 74, 0.25); }
.au-note.warn { color: var(--au-low); background: var(--au-low-bg); border-color: rgba(154, 91, 0, 0.25); }

.au-qr { display: flex; justify-content: center; margin: 0 0 6px; }
.au-qr canvas {
  width: 184px; height: 184px; padding: 10px;
  image-rendering: pixelated;
  background: #fff; border: 1px solid var(--au-line); border-radius: 14px;
}
.au-applink {
  display: flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 10px;
  color: var(--au-navy); font-weight: 700; font-size: 0.9rem; text-decoration: none;
}
.au-applink:hover { text-decoration: underline; }
.au-applink:focus-visible { outline: 2px solid var(--au-navy); outline-offset: 2px; border-radius: 4px; }

.au-field-label { font-size: 0.84rem; font-weight: 700; color: var(--au-ink-2); margin-bottom: 8px; }
.au-secret {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 14px;
  background: var(--au-field); border: 1px solid var(--au-line); border-radius: var(--au-r);
}
.au-secret-text {
  flex: 1; min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem; letter-spacing: 0.06em; line-height: 1.5; color: var(--au-ink);
  word-break: break-all; -webkit-user-select: all; user-select: all;
}
.au-mini {
  flex: 0 0 auto; min-height: 40px; padding: 0 14px;
  font: inherit; font-size: 0.84rem; font-weight: 700; color: var(--au-navy);
  background: #fff; border: 1px solid var(--au-line); border-radius: 10px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.au-mini:hover { border-color: rgba(15, 45, 91, 0.35); background: #F4F8FC; }
.au-mini:focus-visible { outline: 2px solid var(--au-navy); outline-offset: 2px; }

.au-codes {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px;
  margin-bottom: 12px; padding: 16px 10px;
  background: #F4F8FC; border: 1px solid #E3ECF6; border-radius: 14px;
}
.au-codes li {
  text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.8rem, 3.5vw, 0.92rem); font-weight: 600; letter-spacing: 0.02em; color: var(--au-ink);
  white-space: nowrap; -webkit-user-select: all; user-select: all;
}
.au-code-actions { display: flex; gap: 10px; margin-bottom: 18px; }
.au-code-actions .au-mini { flex: 1; min-height: 44px; }

/* Legal footer under the card. sw-legal.js supplies the text. */
.au-footer { width: 100%; max-width: 440px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid rgba(15, 45, 91, 0.12); }

.skip-link:focus { z-index: 10; }

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .au-spinner { animation-duration: 2.4s; }
  .au-btn, button[type="submit"], .field input { transition: none; }
}

/* ── Tablet ────────────────────────────────────────────────────────────── */
@media (max-width: 1079px) {
  .au-aside { flex-basis: 40%; padding: 40px 36px 32px; }
  .au-steps li span, .au-feats span:not(.au-feat-ic) { display: none; }
}

/* ── Phone: navy header, card overlapping it ───────────────────────────── */
@media (max-width: 768px) {
  .au-shell { flex-direction: column; }
  .au-aside { flex: 0 0 auto; max-width: none; padding: 24px 20px 72px; }
  .au-mark { width: 80px; height: 30px; }
  .au-aside-mid { margin-top: 26px; }
  .au-eyebrow { font-size: 0.7rem; }
  .au-aside-title { margin-top: 10px; font-size: clamp(26px, 7.4vw, 34px); }
  .au-aside-lede, .au-feats, .au-steps, .au-aside-foot { display: none; }
  /* Two-factor step: the header keeps only the mark, so the code field and
     Verify sit in the first screen above the keyboard. */
  .au-step-mfa .au-aside-mid { display: none; }
  .au-step-mfa .au-aside { padding-bottom: 64px; }
  /* Two-factor setup: the headline and step list belong to the first step;
     after that the header keeps only the mark, as on the sign-in code step. */
  .au-page-mfa:not([data-step="step-intro"]) .au-aside-mid { display: none; }
  .au-page-mfa:not([data-step="step-intro"]) .au-aside { padding-bottom: 64px; }

  .au-main { min-height: 0; justify-content: flex-start; align-items: stretch; margin-top: -44px; padding: 0 16px 28px; }
  .card { max-width: 480px; margin: 0 auto; padding: 28px 20px 24px; border-radius: 20px; }
  h1 { font-size: 1.6rem; }
  .lede { font-size: 0.95rem; margin-bottom: 24px; }
  .field input[type="text"], .field input[type="password"] { font-size: 16px; }   /* 16px or iOS zooms on focus */
  .au-otp input[type="text"] { font-size: 1.5rem; }
  .au-otp-rec input[type="text"] { font-size: 1.1rem; }
  .au-footer { max-width: 480px; margin-top: 28px; }
}
@media (max-width: 360px) {
  .au-aside { padding: 20px 16px 68px; }
  .au-main { padding: 0 12px 24px; }
  .card { padding: 24px 18px 20px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
