/* استایل‌های مخصوص صفحه بازیابی رمز عبور */
.forgot-password-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.forgot-password-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease;
}

.forgot-password-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.forgot-password-header .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.forgot-password-header .logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.forgot-password-header .system-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.forgot-password-header .system-description {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 5px;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.progress-steps .step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.progress-steps .step.active .step-number {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.progress-steps .step.active .step-label {
    color: var(--secondary-color);
    font-weight: 600;
}

.progress-steps .step-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.progress-steps .step-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
}

/* اطلاعات موبایل */
.mobile-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.mobile-info p {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-number {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 18px;
    margin: 0 5px;
}

/* ورودی کد */
.code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: var(--secondary-color);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

/* بخش شمارش معکوس */
.countdown-section {
    text-align: center;
    margin: 20px 0;
    color: white;
}

.countdown-section p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.countdown {
    color: var(--warning-color);
    font-weight: bold;
    font-size: 18px;
    font-family: monospace;
}

/* توضیحات فرم */
.form-description {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.form-description p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

/* دکمه بازگشت */
.back-to-login {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* اقدامات فرم */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn {
    flex: 1;
}

/* صفحه موفقیت */
.success-container {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 80px;
    color: var(--success-color);
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease;
}

.success-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.success-actions .btn {
    min-width: 150px;
}

/* نکات امنیتی رمز عبور */
.password-requirements {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-requirements h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    padding-right: 25px;
    position: relative;
    font-size: 14px;
}

.password-requirements li:before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    right: 0;
    font-size: 16px;
}

/* نشانگر قدرت رمز عبور */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* فوتر */
.forgot-password-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 30px;
}

.forgot-password-footer p {
    margin-bottom: 5px;
}

/* انیمیشن‌ها */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .forgot-password-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .progress-steps .step-label {
        font-size: 12px;
    }
    
    .code-input {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .forgot-password-header .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .forgot-password-header .system-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .progress-steps .step-label {
        display: none;
    }
    
    .progress-steps .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .code-input {
        width: 40px;
        height: 50px;
        font-size: 18px;
    }
    
    .mobile-info p {
        flex-direction: column;
        gap: 5px;
    }
    
    .mobile-number {
        font-size: 16px;
    }
}