/* ============================================================
   VEXORA PORTAL — AUTH STYLES (Light Theme)
   Onboarding · Login · Aktivierung · Angebot
   Stripe-clean, Vexora-Brand (#673DE6)
   ============================================================ */

/* Tokens kommen aus shared/tokens.css — hier nur lokale Aliase/Ergänzungen */
:root {
  --brand-hover: var(--vx-brand-hover);
  --brand-soft: var(--vx-brand-soft);
  --brand-glow: var(--vx-brand-glow);

  --bg: var(--vx-bg);
  --bg-grad-1: #f7f5fe;
  --bg-grad-2: #eef0f8;
  --surface: var(--vx-surface);
  --surface-alt: var(--vx-surface-alt);

  --ink: var(--vx-ink);
  --ink-2: var(--vx-ink-2);
  --text: var(--vx-text);
  --muted: var(--vx-muted);
  --muted-light: var(--vx-muted-light);
  --placeholder: var(--vx-placeholder);

  --line: var(--vx-line);
  --line-strong: var(--vx-line-strong);

  --success: var(--vx-success);
  --success-bg: var(--vx-success-bg);
  --danger: var(--vx-danger);
  --danger-bg: var(--vx-danger-bg);

  --r-sm: var(--vx-r-md);
  --r-md: var(--vx-r-lg);
  --r-lg: var(--vx-r-xl);
  --r-xl: var(--vx-r-2xl);

  --shadow-sm: var(--vx-shadow-sm);
  --shadow-md: var(--vx-shadow-md);
  --shadow-lg: var(--vx-shadow-lg);
  --shadow-brand: var(--vx-shadow-brand);

  --font: var(--vx-font);
  --ease: var(--vx-ease);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--brand-soft); color: var(--ink); }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ============================================================
   AUTH SHELL — split layout (brand panel + form)
   ============================================================ */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

/* LEFT: Brand showcase panel */
.auth__brand {
  position: relative;
  background:
    radial-gradient(circle at 30% 20%, rgba(103, 61, 230, 0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(103, 61, 230, 0.10), transparent 55%),
    linear-gradient(160deg, #1a1340 0%, #0c0a1f 100%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth__brand::before {
  /* subtle grid texture */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
  pointer-events: none;
}
.auth__brand-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth__brand-logo img { height: 34px; }
.auth__brand-logo .auth__lockup { height: 30px; width: auto; }
.auth__brand-logo span {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth__brand-body { position: relative; z-index: 1; }
.auth__brand-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.auth__brand-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.auth__brand-title em {
  font-style: normal;
  background: linear-gradient(120deg, #a78bff, #673DE6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth__brand-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  max-width: 380px;
  line-height: 1.65;
}
.auth__brand-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth__trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.auth__trust svg { width: 16px; height: 16px; flex-shrink: 0; color: #a78bff; }

/* RIGHT: Form panel */
.auth__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2));
}
.auth__card {
  width: 100%;
  max-width: 440px;
}
.auth__card-head {
  margin-bottom: 28px;
}
.auth__mobile-logo {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth__mobile-logo img { height: 30px; }
.auth__mobile-logo .auth__lockup { height: 26px; width: auto; }
.auth__mobile-logo span { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

.auth__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.auth__subtitle {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.field__label .opt { color: var(--muted-light); font-weight: 400; }
.field__label .req { color: var(--danger); }

.input, .textarea, .select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--muted-light); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.input.is-invalid, .textarea.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-bg);
}

/* Passwort-Maskierung: die Punkte (•) werden in der Feld-Schrift gerendert.
   Unsere Marken-Schrift zeigt sie zu groß/fett → für Passwortfelder eine
   System-Schrift erzwingen. Ergibt saubere, dezente Punkte. */
input[type="password"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.12em;
}
input[type="password"]::placeholder {
  font-family: var(--font, inherit);
  letter-spacing: normal;
}
.field__error {
  font-size: 12px;
  color: var(--danger);
  font-weight: 500;
  display: none;
}
.field.is-invalid .field__error { display: block; }

/* Input with icon */
.input-icon { position: relative; }
.input-icon .input { padding-left: 42px; }
.input-icon svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--muted-light);
  pointer-events: none;
}
/* Password reveal */
.input-icon .reveal {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-light);
  border-radius: 6px;
}
.input-icon .reveal:hover { color: var(--ink); background: var(--surface-alt); }

/* Address autocomplete */
.addr-wrap { position: relative; }
.addr-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
  animation: addrIn 0.15s var(--ease);
}
.addr-dropdown[hidden] { display: none; }
@keyframes addrIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.addr-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border-radius: var(--r-sm);
  text-align: left;
  transition: background 0.12s;
}
.addr-item:hover, .addr-item.is-active { background: var(--brand-soft); }
.addr-item__pin { width: 17px; height: 17px; color: var(--muted-light); flex-shrink: 0; }
.addr-item:hover .addr-item__pin, .addr-item.is-active .addr-item__pin { color: var(--brand); }
.addr-item__body { display: flex; flex-direction: column; min-width: 0; }
.addr-item__l1 { font-size: 14px; color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-item__l2 { font-size: 12.5px; color: var(--muted); }

/* Phone input with country code picker */
.phone-input {
  display: flex;
  gap: 8px;
}
.phone-number { flex: 1; }

/* ===== Stripe-style Country Code Picker ===== */
.cc { position: relative; flex: 0 0 auto; }
.cc__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--font);
}
.cc__btn:hover { border-color: var(--muted-light); }
.cc.is-open .cc__btn,
.cc__btn:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.cc__flag { font-size: 19px; line-height: 1; }
.cc__dial { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cc__chev { width: 15px; height: 15px; color: var(--muted-light); transition: transform 0.2s var(--ease); }
.cc.is-open .cc__chev { transform: rotate(180deg); }

/* Popover — fixed positioning (JS sets coords) so it never clips
   under card/viewport edges. Flex column → list scrolls internally. */
.cc__pop {
  position: fixed;
  z-index: 9998;
  width: 300px;
  max-width: calc(100vw - 24px);
  display: flex;
  flex-direction: column;
  max-height: 360px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: ccIn 0.16s var(--ease);
}
.cc__pop[hidden] { display: none; }
.cc__pop--up { animation: ccInUp 0.16s var(--ease); }
@keyframes ccIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ccInUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.cc__search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cc__search svg { width: 16px; height: 16px; color: var(--muted-light); flex-shrink: 0; }
.cc__search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14.5px;
  color: var(--ink);
  font-family: var(--font);
}
.cc__search-input:focus { outline: none; }
.cc__search-input::placeholder { color: var(--placeholder); }

.cc__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.cc__list::-webkit-scrollbar { width: 10px; }
.cc__list::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
  border: 3px solid var(--surface);
}
.cc__list::-webkit-scrollbar-thumb:hover { background: var(--muted-light); }
.cc__item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  text-align: left;
  font-family: var(--font);
  transition: background 0.1s;
}
.cc__item:hover, .cc__item.is-active { background: var(--brand-soft); }
.cc__item.is-selected { background: var(--brand-softer, rgba(103,61,230,0.05)); }
.cc__item-flag { font-size: 19px; line-height: 1; flex-shrink: 0; }
.cc__item-name {
  flex: 1;
  font-size: 14.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc__item-dial {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cc__item.is-selected .cc__item-dial,
.cc__item.is-active .cc__item-dial { color: var(--brand); }
.cc__empty {
  padding: 24px 12px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

/* Grid for two-column fields */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ============================================================
   CUSTOM CHECKBOX  (Stripe/Linear-Niveau)
   ============================================================ */
.vx-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1;
}
.vx-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.vx-check__box {
  position: relative;
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.vx-check__box svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 3px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.22s var(--ease);
}
.vx-check:hover .vx-check__box { border-color: var(--brand); }
.vx-check input:focus-visible + .vx-check__box {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.vx-check input:checked + .vx-check__box {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 2px 6px rgba(103, 61, 230, 0.32);
}
.vx-check input:checked + .vx-check__box svg { stroke-dashoffset: 0; }
.vx-check input:active + .vx-check__box { transform: scale(0.92); }

/* Remember-me row */
.auth__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.auth__meta a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.auth__meta a:hover { color: var(--brand-deep, var(--brand)); text-decoration: underline; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}
.btn--ghost:hover { background: var(--surface-alt); border-color: var(--muted-light); }
.btn--block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: 0.5; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* SSO / Google button */
.btn--sso {
  width: 100%;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-weight: 500;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  transition: background 0.15s, border-color 0.15s;
}
.btn--sso:hover { background: var(--surface-alt); border-color: var(--muted-light); }
.btn--sso svg, .btn--sso img { width: 18px; height: 18px; }
/* Inline-Ladezustand für SSO/Google: dezenter dunkler Spinner statt Vollbild-Loader */
.btn--sso.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn--sso.is-loading svg, .btn--sso.is-loading img { visibility: hidden; }
.btn--sso.is-loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(60,60,80,0.25);
  border-top-color: var(--ink-2, #3a3a4a);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Divider "oder" */
.auth__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--muted-light);
  font-size: 12.5px;
  font-weight: 500;
}
.auth__divider::before, .auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.auth__foot {
  margin-top: 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.auth__legal {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted-light);
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   WIZARD — multi-step onboarding
   ============================================================ */
.wizard__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.wizard__step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.wizard__step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}
/* Ein Balken ist gefüllt, sobald sein Schritt erreicht ist — sauber, kein Halb-Zustand */
.wizard__step.is-filled::after { transform: scaleX(1); }
/* Der aktuelle Balken bekommt einen dezenten Glow als Orientierung */
.wizard__step.is-current::after {
  box-shadow: 0 0 0 1px var(--brand-glow);
}

.wizard__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.wizard__panel { display: none; animation: panelIn 0.35s var(--ease); }
.wizard__panel.is-active { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Logo upload dropzone */
.logo-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.logo-drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.logo-drop__preview {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-drop__preview img { width: 100%; height: 100%; object-fit: cover; }
.logo-drop__preview svg { width: 22px; height: 22px; color: var(--muted-light); }
.logo-drop__text strong { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.logo-drop__text span { font-size: 12px; color: var(--muted); }
.logo-drop input { display: none; }

/* ============================================================
   SUCCESS / DONE SCREEN
   ============================================================ */
.done {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}
.done__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  animation: popIn 0.5s var(--ease);
}
.done__icon svg { width: 34px; height: 34px; stroke-width: 2.5; }
/* Mail-Variante (Link gesendet) — Marken-Violett mit Glow */
.done__icon--mail {
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: 0 8px 22px rgba(103, 61, 230, 0.20);
}
/* ============================================================
   OTP / 2FA CODE-EINGABE  (6 Boxen, Auto-Advance)
   ============================================================ */
.otp-group {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.otp-box {
  flex: 1 1 0;
  min-width: 0;
  height: 58px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s;
  caret-color: var(--brand);
}
.otp-box:hover { border-color: var(--muted-light); }
.otp-box:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.otp-box.is-filled {
  border-color: var(--brand);
  background: var(--brand-soft);
}
/* Fehlerzustand + Shake */
.otp-group.is-error .otp-box {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-bg);
  animation: otpShake 0.4s var(--ease);
}
@keyframes otpShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
/* Verify-Erfolg */
.otp-group.is-success .otp-box {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}
.otp-timer { color: var(--muted-light); font-variant-numeric: tabular-nums; }

@media (max-width: 420px) {
  .otp-group { gap: 7px; }
  .otp-box { height: 52px; font-size: 21px; }
}

/* Lock-Variante (Zugang abgelaufen) — Warnton */
.done__icon--lock {
  background: var(--warning-bg, rgba(245, 158, 11, 0.12));
  color: var(--warning, #f59e0b);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.18);
}
.lock-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}
.lock-actions .btn { width: 100%; }

/* Zurück-zum-Login Link */
.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.done__title { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.02em; }
.done__text { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__mobile-logo { display: flex; }
  .auth__main { padding: 32px 20px; align-items: flex-start; }
  .auth__card { margin-top: 12px; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .auth__title { font-size: 23px; }
}

/* iOS/Safari zoomt beim Fokus in ein Feld hinein, sobald dessen Schrift
   kleiner als 16px ist. Auf schmalen Screens deshalb ALLE Eingabefelder auf
   16px heben — verhindert das Rein-Zoomen zuverlässig (Design bleibt gleich,
   16px vs. 15px ist optisch praktisch identisch). */
@media (max-width: 640px) {
  input,
  textarea,
  select,
  .input,
  .textarea,
  .select {
    font-size: 16px;
  }
}
