/* استایل‌های مربوط به ورودی OTP */

.otp-container {
    margin: 20px 0;
}

.otp-inputs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    direction: ltr;
}

.otp-input-wrapper {
    position: relative;
}

.otp-input {
    width: 50px;
    height: 60px;
    font-size: 24px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.otp-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.otp-input.filled {
    background-color: #e8f0fe;
}

.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6c757d;
}

.countdown-timer {
    font-weight: bold;
    margin: 0 5px;
    direction: ltr;
}

.resend-button {
    color: #0d6efd;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.resend-button.disabled {
    color: #6c757d;
    cursor: not-allowed;
    text-decoration: none;
    opacity: 0.6;
}

/* استایل‌های لودر */
.loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #0d6efd;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-container.active {
    display: flex;
}

/* استایل‌های پیام‌ها */
.message-container {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
}

.message-container.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message-container.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* استایل‌های انیمیشن */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 576px) {
    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
    
    .otp-inputs-container {
        gap: 8px;
    }
} 