/* ── Two-Factor Authentication pages ─────────────────────────────── */

.cv-2fa-page .cv-2fa-card-wrap {
    max-width: 440px;
}

.cv-2fa-card {
    padding-top: 2rem !important;
}

.cv-2fa-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.cv-2fa-icon-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, .15), rgba(124, 58, 237, .15));
    border: 1px solid rgba(37, 99, 235, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #60a5fa;
    box-shadow: 0 0 32px rgba(37, 99, 235, .2);
    animation: cv-2fa-pulse 3s ease-in-out infinite;
}

@keyframes cv-2fa-pulse {
    0%, 100% { box-shadow: 0 0 32px rgba(37, 99, 235, .2); }
    50%      { box-shadow: 0 0 48px rgba(124, 58, 237, .35); }
}

.cv-2fa-header {
    text-align: center;
    margin-bottom: 1rem !important;
}

.cv-2fa-header h2 {
    font-size: 1.35rem !important;
}

.cv-2fa-email-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .55rem 1rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .15);
    color: #93c5fd;
    font-size: .8rem;
}

.cv-2fa-email-chip i {
    color: #60a5fa;
    font-size: .85rem;
}

/* Countdown timer */
.cv-2fa-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.25rem;
}

.cv-2fa-timer-ring {
    position: relative;
    width: 88px;
    height: 88px;
}

.cv-2fa-timer-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.cv-2fa-timer-track {
    fill: none;
    stroke: rgba(255, 255, 255, .08);
    stroke-width: 4;
}

.cv-2fa-timer-progress {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 175.9;
    transition: stroke-dashoffset .9s linear, stroke .3s;
}

.cv-2fa-timer.is-expired .cv-2fa-timer-progress {
    stroke: #ef4444;
}

.cv-2fa-timer-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #e2e8f0;
    letter-spacing: .02em;
}

.cv-2fa-timer.is-expired .cv-2fa-timer-value {
    color: #fca5a5;
}

.cv-2fa-timer-label {
    margin-top: .4rem;
    font-size: .72rem;
    color: rgba(255, 255, 255, .45);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cv-2fa-timer.is-expired .cv-2fa-timer-label {
    color: #f87171;
}

/* Code input */
.cv-2fa-code-wrap {
    position: relative;
}

.cv-2fa-code-input {
    width: 100%;
    padding: 1rem 1.25rem !important;
    text-align: center;
    font-size: 2rem !important;
    font-weight: 700 !important;
    letter-spacing: .55em !important;
    font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, .04) !important;
    border: 2px solid rgba(255, 255, 255, .1) !important;
    border-radius: 14px !important;
    color: #f1f5f9 !important;
    transition: border-color .2s, box-shadow .2s;
}

.cv-2fa-code-input::placeholder {
    letter-spacing: .35em !important;
    color: rgba(255, 255, 255, .15) !important;
    font-size: 1.5rem !important;
}

.cv-2fa-code-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, .6) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .15), 0 0 24px rgba(59, 130, 246, .1) !important;
}

.cv-2fa-form {
    margin-top: .5rem;
}

.cv-2fa-submit {
    width: 100%;
}

.cv-2fa-resend-form {
    margin-top: 1rem;
    text-align: center;
}

.cv-2fa-resend-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .45);
    font-size: .82rem;
    cursor: pointer;
    padding: .35rem .75rem;
    border-radius: 8px;
    transition: color .2s, background .2s;
}

.cv-2fa-resend-btn:hover {
    color: #93c5fd;
    background: rgba(59, 130, 246, .08);
}

.cv-2fa-back-link {
    text-align: center;
    margin-top: 1rem;
}

.cv-2fa-back-link a {
    color: rgba(255, 255, 255, .4);
    font-size: .82rem;
    text-decoration: none;
    transition: color .2s;
}

.cv-2fa-back-link a:hover {
    color: rgba(255, 255, 255, .7);
}

@media (prefers-reduced-motion: reduce) {
    .cv-2fa-icon-ring { animation: none !important; }
    .cv-2fa-timer-progress { transition: none !important; }
}
