/* ==================== 2FA LOGIN MODAL ==================== */

.modal-overlay-2fa {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-2fa-content {
    background: var(--bg-primary, #fff);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-2fa-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-bottom: 1px solid #bbf7d0;
}

[data-theme="dark"] .modal-2fa-header {
    background: linear-gradient(135deg, #064e3b, #065f46);
    border-bottom-color: #047857;
}

.modal-2fa-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.modal-2fa-header h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-2fa-header p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modal-2fa-body {
    padding: 2rem;
}

.twofa-input-group {
    margin-bottom: 1.5rem;
}

.twofa-input {
    width: 100%;
    padding: 1rem;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.5em;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.twofa-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.twofa-input::placeholder {
    color: #cbd5e1;
    letter-spacing: 0.3em;
}

.modal-2fa-footer {
    padding: 1rem 2rem 1.5rem;
    text-align: center;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 480px) {
    .modal-2fa-content {
        max-width: 100%;
        margin: 1rem;
    }
    
    .twofa-input {
        font-size: 1.5rem;
        letter-spacing: 0.3em;
    }
}
