/* MFA OTP */
/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-block {
    width: 100%;
    margin-bottom: 10px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

    .btn-primary:hover:not(:disabled) {
        background: #5568d3;
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    }

.btn-link {
    background: transparent;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}
    .btn-link:hover {
        cursor: pointer;
    }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.alert-danger {
    /* background: transparent; */
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* OTP Specific Styles */
.otp-instruction {
    text-align: center;
    color: #333;
    /* background-color: transparent; */
    background-color: rgba(255, 255, 255, 0.9);

    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.otp-reference {
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
    background-color: transparent;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: none;
}

/* OTP Input Boxes */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.otp-digit-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #ddddddd1;
    border-radius: 15px;
    transition: all 0.3s;
}

    .otp-digit-input:focus {
        outline: none;
        border-color: #1b1464;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        transform: scale(1.05);
    }

    .otp-digit-input:disabled {
        background: #f5f5f5;
        cursor: not-allowed;
    }

/* Timers */
.otp-timers {
    text-align: center;
    margin-bottom: 10px;
}

.timer-item {
    margin: 5px 0;
    color: #333;
    background-color: transparent;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

    .timer-item strong {
        color: #1b1464;
        font-size: 14px;
    }

.timer-warning strong {
    color: #dc3545;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Attempt Counter */
.attempt-counter {
    text-align: center;
    padding: 5px;
    /* background: transparent; */
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 14px;
}

/* OTP Buttons */
.otp-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* OTP Card - ensure text visibility */
.otp-card {
    background-color: transparent;
    padding: 30px;
    border-radius: 15px;
    box-shadow: none;
}

.otp-card h2 {
    color: #1b1464;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 480px) {
    .otp-card {
        padding: 30px 20px;
    }

    .otp-digit-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .otp-inputs {
        gap: 5px;
    }
}