/* ─── Two-Factor Auth overlay ─── */
.tfa-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.tfa-box {
    background: var(--card-bg, #1e2235);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 32px;
    text-align: center;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.tfa-icon { font-size: 44px; margin-bottom: 12px; }

.tfa-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #e2e8f0);
    margin-bottom: 6px;
}

.tfa-sub {
    color: var(--text-muted, #94a3b8);
    font-size: 13px;
    margin-bottom: 24px;
}

.tfa-input {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text, #e2e8f0);
    outline: none;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.tfa-input:focus { border-color: var(--accent, #3b82f6); }

.tfa-btn {
    width: 100%;
    padding: 13px;
    background: var(--accent, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.tfa-btn:hover { opacity: 0.88; }
.tfa-btn:disabled { opacity: 0.5; cursor: default; }

.tfa-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.tfa-close:hover { color: var(--text, #e2e8f0); background: rgba(255,255,255,0.07); }

.tfa-box { position: relative; }
