/* 2FA-Verifizierung */
.webinfo-2fa-container .twofa-card-container {
    max-width: 480px;
    min-width: 280px;
}

.webinfo-2fa-container .card-header {
    font-size: 18px;
    font-weight: 600;
}

.webinfo-2fa-container .card-header i {
    font-size: 20px;
}

/* QR-Code */
.twofa-qr-container {
    width: 180px;
    height: 180px;
    padding: 12px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    display: inline-block;
}

.twofa-qr-code {
    width: 100%;
    height: 100%;
}

.twofa-secret-key code {
    font-size: 13px;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Code-Eingabefelder */
.twofa-digit {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    caret-color: var(--fux-dark, #1B2A4A);
}

.twofa-digit:focus {
    border-color: var(--fux-blue, #254F7B);
    box-shadow: 0 0 0 3px rgba(37, 79, 123, 0.2);
}

.twofa-digit.filled {
    border-color: var(--fux-dark, #1B2A4A);
    background-color: #f8f9fa;
}

.twofa-digit.error {
    border-color: var(--fux-red, #B4003A);
    animation: shake 0.4s ease-in-out;
}

.twofa-separator {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 300;
    color: #adb5bd;
}

/* Submit-Button */
#twofa-submit-btn {
    font-size: 16px;
    padding: 10px;
}

#twofa-submit-btn:disabled {
    opacity: 0.5;
}

/* Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Responsive */
@media (max-width: 480px) {
    .twofa-digit {
        width: 42px;
        height: 50px;
        font-size: 22px;
    }

    .twofa-qr-container {
        width: 150px;
        height: 150px;
    }

    .webinfo-2fa-container .twofa-card-container {
        margin: 0 16px;
    }
}
