/**
 * استایل‌های صفحه ورود SMS
 *
 * @package GigiShops
 */

/* Container */
#sms-login-container {
    position: relative;
}

/* Phone Input RTL Fix */
#phone-input {
    direction: ltr;
    text-align: left;
}

/* OTP Inputs */
.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.2s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.otp-input:focus {
    outline: none;
    border-color: #9333ea;
    background: white;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.otp-input.filled {
    border-color: #9333ea;
    background: white;
}

.otp-input.error {
    border-color: #ef4444;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Step Transitions */
#phone-step,
#verify-step,
#success-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#phone-step.fade-out,
#verify-step.fade-out,
#success-step.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* Responsive */
@media (max-width: 480px) {
    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 1.25rem;
    }
}

/* Success Animation */
.success-checkmark {
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}


