/* css/otp.css */
/* Modale OTP Overlay */
.otp-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.otp-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Boîte OTP */
.otp-modal-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.otp-modal-overlay.active .otp-modal-box {
    transform: translateY(0);
}

.otp-modal-box h3 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
}

.otp-modal-box p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.otp-modal-box input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    outline: none;
}
.otp-modal-box input:focus {
    border-color: #4b208c;
}

.otp-modal-box button {
    background: #4b208c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.otp-modal-box button:hover {
    background: #3a166a;
}
.otp-modal-box button:disabled {
    background: #a9a9a9;
    cursor: not-allowed;
}

.otp-error-msg {
    color: red;
    font-size: 13px;
    margin-bottom: 10px;
    display: none;
}
.otp-success-msg {
    color: green;
    font-size: 14px;
    margin-bottom: 10px;
    display: none;
}
