/* Sicherheit: Zwei-Faktor-Anmeldung (Einrichtung, Backup-Codes, Geräte) und Login-Zwischenstufe */

.otp-input {
  font: 600 22px/1.2 var(--font-mono, ui-monospace, monospace); letter-spacing: .18em; text-align: center;
  font-variant-numeric: tabular-nums; max-width: 260px;
}
.twofa-alt { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.twofa-lost summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 650; list-style: none; }
.twofa-lost summary::-webkit-details-marker { display: none; }
.twofa-lost summary .icon { width: 18px; height: 18px; color: var(--muted); }
.twofa-lost[open] summary { margin-bottom: 12px; }
.twofa-lost .check, .focus-card .check { margin: 4px 0 8px; }

.twofa-setup { margin-top: 18px; }
.twofa-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 22px; }
.twofa-steps > li { counter-increment: step; display: grid; gap: 10px; padding-left: 40px; position: relative; }
.twofa-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line);
}
/* QR immer dunkel auf hell (Scanner), auch im dunklen Design */
.qr-box { width: 236px; max-width: 100%; padding: 8px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.qr-box img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.secret-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.secret-key {
  font: 600 15px/1.4 var(--font-mono, ui-monospace, monospace); letter-spacing: .06em; padding: 8px 12px;
  border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); overflow-wrap: anywhere;
}

.backup-codes-box { margin-top: 18px; }
.backup-codes {
  margin: 14px 0 0; padding: 14px 14px 14px 40px; border-radius: var(--radius); background: var(--bg-2);
  border: 1px dashed var(--border-strong); columns: 2; column-gap: 32px;
  font: 600 15px/1.9 var(--font-mono, ui-monospace, monospace);
}
.backup-codes li { break-inside: avoid; }

.device-list { margin-top: 12px; }
.device-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.device-info { display: grid; gap: 2px; min-width: 0; }


/* Moderations-Reiter "2FA-Wiederherstellung" */
.recovery-reason { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); }

@media (max-width: 560px) {
  .backup-codes { columns: 1; }
  .device-row { flex-direction: column; align-items: flex-start; }
}
