/* OTP Modal Styles - /htdocs/css/otp-modal.css */

#otpModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

#otpModal .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
}

#otpModal .close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

#otpModal .close:hover {
    color: #333;
}

#otpModal h2 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
    text-align: center;
}

#otpModal .email-display {
    font-weight: 600;
    color: #2563eb;
    margin: 10px 0 20px;
    text-align: center;
    word-break: break-all;
}

.otp-input-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.otp-digit {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.otp-digit:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.timer-display {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: 15px 0;
}

#countdown {
    font-weight: 600;
    color: #dc2626;
}

.resend-container {
    text-align: center;
    margin: 15px 0;
}

#resendOtp {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 5px 10px;
}

#resendOtp:hover:not(:disabled) {
    color: #1d4ed8;
}

#resendOtp:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

.message {
    padding: 10px;
    border-radius: 6px;
    margin: 15px 0;
    text-align: center;
}

.message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.message.success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.message.info {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

#otpStep2 {
    text-align: center;
}

.success-message {
    font-size: 24px;
    color: #16a34a;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 480px) {
    #otpModal .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
    
    .otp-digit {
        width: 35px;
        height: 40px;
        font-size: 20px;
    }
}