/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.18_@opentelemetry+api@1.9.0_@playwright+test@1.60.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.18_@opentelemetry+api@1.9.0_@playwright+test@1.60.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/(auth)/auth.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*
 * Auth screens (Login · TOTP-Challenge · 2FA-Setup · Backup-Codes).
 * Ported 1:1 from design/Login & 2FA.html; all values reference the design
 * tokens (--cl-* / --rb-*) emitted by @codeland/ui.
 */

.au-shell {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60% 50% at 50% 35%, rgba(255, 255, 255, 0.6), transparent 70%),
    var(--cl-surface-2);
  overflow: hidden;
  isolation: isolate;
}

/* Glow blobs — auth gets the SIGNATURE intensity */
.au-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.au-glow-a,
.au-glow-b,
.au-glow-c {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.au-glow-a {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -100px;
  background: radial-gradient(
    closest-side,
    rgba(255, 110, 196, 0.42),
    rgba(255, 184, 107, 0.2) 50%,
    transparent 80%
  );
}
.au-glow-b {
  width: 480px;
  height: 480px;
  bottom: -160px;
  right: -80px;
  background: radial-gradient(
    closest-side,
    rgba(122, 252, 255, 0.36),
    rgba(155, 107, 255, 0.2) 50%,
    transparent 80%
  );
}
.au-glow-c {
  width: 360px;
  height: 360px;
  top: 40%;
  left: 60%;
  background: radial-gradient(
    closest-side,
    rgba(255, 216, 107, 0.2),
    rgba(107, 255, 216, 0.1) 60%,
    transparent 80%
  );
}

.au-h {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 22px 28px 0;
  color: var(--cl-text);
}
.au-h-mark {
  display: grid;
  place-items: center;
  color: var(--cl-ink-bg);
}
.au-h-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.au-main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  position: relative;
  z-index: 1;
  flex-direction: column;
  gap: 18px;
}

.au-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px 18px;
  color: var(--cl-text-soft);
  font-size: 11px;
}
.au-foot a {
  color: var(--cl-text-mute);
  text-decoration: none;
}
.au-foot a:hover {
  color: var(--cl-text);
}
.au-foot-sep {
  color: var(--cl-text-soft);
}
.au-foot-link {
  color: var(--cl-text-mute);
}
.au-foot-lang {
  font-family: var(--cl-font-mono);
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--cl-text-mute);
}

/* ── CARD ──────────────────────────────────────────────────────────────── */
.au-card {
  position: relative;
  width: 380px;
  max-width: 100%;
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: 16px;
  padding: 32px 32px 28px;
  box-shadow: var(--cl-shadow-card);
}
.au-card-wide {
  width: 520px;
}
.au-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--rb-pink) 0%,
    var(--rb-peach) 20%,
    var(--rb-gold) 40%,
    var(--rb-mint) 60%,
    var(--rb-sky) 80%,
    var(--rb-violet) 100%
  );
  border-radius: 0 0 2px 2px;
  opacity: 0.75;
}

.au-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px 3px 7px;
  background: rgba(155, 107, 255, 0.1);
  color: var(--rb-violet);
  border-radius: 6px;
  margin-bottom: 14px;
}
.au-badge-i {
  display: grid;
  place-items: center;
}
.au-badge-i svg {
  width: 12px;
  height: 12px;
}

.au-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 6px;
  color: var(--cl-text);
  text-wrap: balance;
  line-height: 1.2;
}
.au-sub {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cl-text-mute);
  text-wrap: pretty;
}

/* ── FORM ──────────────────────────────────────────────────────────────── */
.au-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.au-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.au-field-l {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--cl-text-2);
  padding: 0 2px;
}
.au-field-link {
  font-size: 11px;
  color: var(--cl-text-mute);
  text-decoration: none;
}
.au-field-link:hover {
  color: var(--rb-violet);
}

.au-field-i {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: 10px;
  height: 42px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.au-field-i:focus-within {
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(155, 107, 255, 0.4);
}
.au-field-pre {
  display: grid;
  place-items: center;
  color: var(--cl-text-mute);
}
.au-field-pre svg {
  width: 16px;
  height: 16px;
}
.au-input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--cl-text);
  width: 100%;
  padding: 0 4px 0 0;
  letter-spacing: -0.005em;
}
.au-input::placeholder {
  color: var(--cl-text-soft);
}
.au-field-post {
  appearance: none;
  border: 0;
  background: transparent;
  width: 36px;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--cl-text-mute);
  cursor: pointer;
}
.au-field-post:hover {
  color: var(--cl-text);
}
.au-field-post svg {
  width: 16px;
  height: 16px;
}

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.au-btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  position: relative;
}
.au-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.au-btn-block {
  width: 100%;
}
.au-btn svg {
  width: 15px;
  height: 15px;
}
.au-btn-pre {
  display: grid;
  place-items: center;
}
.au-btn-pre svg {
  width: 15px;
  height: 15px;
}

.au-btn-primary {
  background: var(--cl-ink-bg);
  color: var(--cl-ink-fg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 6px 16px -6px rgba(20, 20, 24, 0.45),
    0 1px 2px rgba(20, 20, 24, 0.18);
}
.au-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 110, 196, 0.55),
    rgba(155, 107, 255, 0.35) 50%,
    rgba(122, 252, 255, 0.35)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s;
}
.au-btn-primary:hover::after {
  opacity: 1;
}

.au-btn-ghost {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  color: var(--cl-text);
}
.au-btn-ghost:hover {
  border-color: var(--cl-border-strong);
}

.au-kbd {
  font-family: var(--cl-font-mono);
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1px 5px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
}

/* ── OR DIVIDER ────────────────────────────────────────────────────────── */
.au-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
}
.au-or-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cl-border-strong), transparent);
}
.au-or-text {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-text-soft);
}

.au-foot-cta {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--cl-text-mute);
}
.au-foot-cta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cl-text);
  font-weight: 500;
  text-decoration: none;
  margin-left: 4px;
}
.au-foot-cta a:hover {
  color: var(--rb-violet);
}
.au-foot-cta a svg {
  width: 12px;
  height: 12px;
}
.au-foot-cta-back a {
  color: var(--cl-text-mute);
  font-weight: 450;
}

/* ── TRUST PILL ────────────────────────────────────────────────────────── */
.au-trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--cl-text-mute);
  padding: 5px 12px 5px 10px;
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--cl-border);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    var(--cl-shadow-sm);
}
.au-trust-i {
  display: grid;
  place-items: center;
  color: var(--cl-mint);
}
.au-trust-i svg {
  width: 13px;
  height: 13px;
}

/* ── ERROR ─────────────────────────────────────────────────────────────── */
.au-error {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -4px 0 4px;
  padding: 8px 11px;
  font-size: 12px;
  color: var(--cl-rose);
  background: var(--cl-rose-bg);
  border: 1px solid color-mix(in srgb, var(--cl-rose) 22%, transparent);
  border-radius: 8px;
}

/* ── OTP CELLS ─────────────────────────────────────────────────────────── */
.au-otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 4px 0 6px;
}
.au-otp-inline {
  margin-top: 8px;
}
.au-otp-cell {
  height: 54px;
  width: 100%;
  border: 1.5px solid var(--cl-border);
  background: var(--cl-surface);
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--cl-font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--cl-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  outline: 0;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.au-otp-cell.is-filled {
  border-color: var(--cl-border-strong);
}
.au-otp-cell:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(155, 107, 255, 0.4);
  background: linear-gradient(180deg, rgba(155, 107, 255, 0.04), transparent), var(--cl-surface);
}

.au-otp-meta {
  margin: 0 0 18px;
  text-align: center;
  font-size: 12px;
  color: var(--cl-text-mute);
}
.au-otp-meta strong {
  color: var(--cl-text);
  font-family: var(--cl-font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.au-otp-meta a,
.au-link {
  color: var(--cl-text-mute);
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.au-otp-meta a:hover,
.au-link:hover {
  color: var(--rb-violet);
}
.au-sub-dot {
  color: var(--cl-text-soft);
  margin: 0 6px;
}

.au-field-otp-l {
  margin-bottom: 16px;
}

/* ── STEP PROGRESS ─────────────────────────────────────────────────────── */
.au-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.au-steps-l {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cl-text-soft);
}
.au-steps-bar {
  display: flex;
  gap: 4px;
}
.au-steps-seg {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--cl-surface-3);
}
.au-steps-seg.is-done {
  background: linear-gradient(90deg, var(--rb-pink), var(--rb-violet));
}
.au-steps-seg.is-current {
  background: linear-gradient(90deg, var(--rb-pink), var(--rb-peach));
  box-shadow: 0 0 0 1px rgba(255, 110, 196, 0.18);
}

/* ── QR ROW ────────────────────────────────────────────────────────────── */
.au-qr-row {
  display: grid;
  grid-template-columns: 192px 1fr;
  gap: 24px;
  align-items: center;
  margin: 10px 0 18px;
  padding: 18px;
  background: var(--cl-surface-2);
  border: 1px solid var(--cl-border);
  border-radius: 12px;
}
.au-qr-wrap {
  position: relative;
  padding: 12px;
  background: var(--cl-surface);
  border-radius: 12px;
  box-shadow: var(--cl-shadow-sm);
  line-height: 0;
}
.au-qr-wrap img {
  width: 168px;
  height: 168px;
  display: block;
  border-radius: 6px;
}
.au-qr-frame {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(255, 110, 196, 0.5),
    rgba(155, 107, 255, 0.4) 50%,
    rgba(122, 252, 255, 0.5)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.au-qr-r {
  min-width: 0;
}
.au-qr-h {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cl-text);
}
.au-qr-p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--cl-text-mute);
  line-height: 1.5;
}
.au-qr-meta {
  margin: 8px 0 0;
  font-size: 10.5px;
  color: var(--cl-text-soft);
}

.au-secret {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 4px 6px 10px;
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: 7px;
}
.au-secret code {
  flex: 1;
  min-width: 0;
  font-family: var(--cl-font-mono);
  font-size: 11.5px;
  color: var(--cl-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.au-secret-copy {
  appearance: none;
  border: 0;
  background: transparent;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--cl-text-mute);
  cursor: pointer;
}
.au-secret-copy:hover {
  background: var(--cl-surface-3);
  color: var(--cl-text);
}
.au-secret-copy svg {
  width: 13px;
  height: 13px;
}

/* ── ACTIONS ───────────────────────────────────────────────────────────── */
.au-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}
.au-actions .au-btn {
  width: auto;
}
.au-actions .au-btn-ghost {
  padding: 11px 14px;
}

/* ── BACKUP CODES ──────────────────────────────────────────────────────── */
.au-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  padding: 14px 16px;
  background: var(--cl-surface-2);
  border: 1px solid var(--cl-border);
  border-radius: 12px;
  margin: 10px 0 14px;
  position: relative;
  overflow: hidden;
}
.au-codes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--rb-pink),
    var(--rb-peach),
    var(--rb-mint),
    var(--rb-violet)
  );
  opacity: 0.7;
}
.au-code {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid var(--cl-border-soft);
}
.au-code:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.au-code-n {
  font-family: var(--cl-font-mono);
  font-size: 10.5px;
  color: var(--cl-text-soft);
  font-variant-numeric: tabular-nums;
}
.au-code code {
  font-family: var(--cl-font-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cl-text);
}
.au-code-state {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cl-mint);
}
.au-codes-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.au-codes-actions .au-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
}
.au-codes-actions .au-btn svg {
  width: 13px;
  height: 13px;
}

.au-confirm {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--cl-text-2);
  line-height: 1.5;
  cursor: pointer;
}
.au-confirm input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.au-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--cl-border-strong);
  background: var(--cl-surface);
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: transparent;
}
.au-confirm input:checked + .au-check {
  background: var(--cl-ink-bg);
  border-color: var(--cl-ink-bg);
  color: var(--cl-ink-fg);
}
.au-check svg {
  width: 13px;
  height: 13px;
}

/* ══════════════════════════════════════════════════════════════════════════
   Mobil — der Login ist der erste Screen der installierten App und muss auf
   jedem Handy sitzen. Breakpoints wie im Rest (shell-mobile.css).
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .au-shell {
    /* Randlos hinter Notch/Home-Indicator; der Inhalt bleibt im sicheren Bereich. */
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
      env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  }
  .au-main {
    /* Oben ausrichten statt zentrieren: sobald die Tastatur aufgeht, sprang die
       Karte sonst unter den sichtbaren Bereich. */
    justify-content: flex-start;
    padding: 20px 16px 28px;
    gap: 14px;
  }
  .au-card,
  .au-card-wide {
    width: 100%;
    padding: 24px 20px 22px;
    border-radius: 14px;
  }
  .au-card::before {
    left: 16px;
    right: 16px;
  }
  .au-title {
    font-size: 21px;
  }

  /* 16px verhindert den Auto-Zoom von iOS Safari beim Fokussieren. */
  .au-input {
    font-size: 16px;
  }

  /* Sechs Code-Felder müssen nebeneinander bleiben — sonst verliert der
     Eingabefluss (auto-advance) seinen Sinn. Also enger statt umgebrochen. */
  .au-otp {
    gap: 6px;
  }
  .au-otp-cell {
    height: 50px;
    font-size: 20px;
    border-radius: 9px;
  }

  /* 2FA-Einrichtung: QR-Code über den Hinweistext statt daneben. */
  .au-qr-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
    padding: 14px;
  }

  /* Backup-Codes einspaltig — zweispaltig bricht der Code um und ist dann
     nicht mehr sicher abzulesen. */
  .au-codes {
    grid-template-columns: 1fr;
  }

  .au-btn {
    min-height: 46px;
  }
  .au-foot {
    flex-wrap: wrap;
    padding: 12px 16px 16px;
  }

  /* Die Glow-Blobs sind großflächige Blur-Filter — auf dem Handy kosten sie
     spürbar Rendering-Zeit fürs Auge kaum sichtbar. */
  .au-glow-c {
    display: none;
  }
}

