/* Custom OTP Login Styles */

/* Hide the default theme modal completely and aggressively */
div[data-remodal-id="login"],
.remodal[data-remodal-id="login"],
form#login-modal,
.remodal-wrapper.remodal-is-opened:has([data-remodal-id="login"]) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

#otp-login-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    direction: rtl;
}

.otp-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.otp-modal-header {
    background-color: #f1f1f1;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.otp-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.otp-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.otp-close:hover,
.otp-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.otp-modal-body {
    padding: 20px;
}

.otp-form-group {
    margin-bottom: 15px;
}

.otp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.otp-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Important for padding */
}

.otp-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.3s;
}

.otp-btn:hover {
    background-color: #45a049;
}

.otp-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.otp-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
    text-align: center;
}

.otp-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

.otp-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

#otp-step-verify {
    display: none;
}

.otp-resend-timer {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

#resend-otp-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: 14px;
}

#resend-otp-btn:disabled {
    color: #999;
    text-decoration: none;
    cursor: default;
}
