/* NEX6 — 2FA : ecran de verification / configuration TOTP, esthetique cyber */

.tfa-card { max-width: 460px; }

.tfa-ring-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto var(--space-md);
}
.tfa-ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tfa-ring-bg { fill: none; stroke: var(--border-soft); stroke-width: 4; }
.tfa-ring-fg {
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.7));
  transition: stroke-dashoffset 1s linear;
}
.tfa-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--neon-cyan);
}

.tfa-code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: var(--space-md) 0;
}
.tfa-code-inputs input {
  width: 44px;
  height: 54px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}
.tfa-code-inputs input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
  transform: translateY(-2px);
}
.tfa-code-inputs input.is-filled { border-color: var(--neon-violet); }

@keyframes tfa-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
.tfa-scanner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-1);
  padding: var(--space-lg);
  text-align: center;
  margin-bottom: var(--space-md);
}
.tfa-scanner::before {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.12), transparent);
  animation: tfa-scan 2.4s ease-in-out infinite;
  pointer-events: none;
}

.tfa-qr-box {
  display: inline-block;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px var(--border-soft), 0 0 24px rgba(0, 240, 255, 0.25);
  margin: var(--space-md) 0;
}

.tfa-manual-key {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  background: var(--bg-1);
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  word-break: break-all;
  display: block;
  margin: 8px 0 var(--space-md);
}

.tfa-recovery-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-family: var(--font-mono);
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-md) 0;
}
.tfa-recovery-list span { color: var(--text-primary); font-size: 0.92rem; }

.tfa-toggle-link { text-align: center; margin-top: var(--space-md); }
.tfa-toggle-link a { color: var(--neon-cyan); font-size: 0.88rem; }
.tfa-toggle-link a:hover { text-decoration: underline; }

.tfa-pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-mint);
  box-shadow: 0 0 8px var(--neon-mint);
  animation: tfa-pulse 1.6s ease-in-out infinite;
  margin-right: 6px;
}
@keyframes tfa-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@media (max-width: 480px) {
  .tfa-code-inputs input { width: 38px; height: 48px; font-size: 1.2rem; }
  .tfa-recovery-list { grid-template-columns: 1fr; }
}
