/* Security Enhanced Styles */
.modal-enhanced {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.modal-header-enhanced {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 12px 12px 0 0;
    border: none;
}

.modal-title-enhanced {
    font-weight: 600;
}

.custom-close-btn {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.custom-close-btn:hover {
    opacity: 1;
}

.card-enhanced {
    border: none;
    background: #ffffff;
}

.form-control-enhanced {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control-enhanced:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-label-enhanced {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.btn-enhanced {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary-enhanced {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.btn-primary-enhanced:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
}

.btn-success-enhanced {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.btn-success-enhanced:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-1px);
}

/* OTP Input Styling */
#otp_code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Security Alerts */
.security-alert {
    border-left: 4px solid #dc3545;
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin: 10px 0;
    border-radius: 0 8px 8px 0;
}

.security-success {
    border-left: 4px solid #28a745;
    background-color: #d1eddb;
    color: #155724;
    padding: 15px;
    margin: 10px 0;
    border-radius: 0 8px 8px 0;
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Timer Styling */
#otpTimer {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #dc3545 !important;
}

/* Responsive Design */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .form-control-enhanced {
        padding: 10px 14px;
    }
    
    .btn-enhanced {
        padding: 10px 20px;
    }
}

/* Animation untuk form errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-control.is-invalid {
    animation: shake 0.5s ease-in-out;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.security-badge i {
    margin-right: 4px;
}