/* استایل‌های پایه فرم فراموشی رمز */
body {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.fp-container {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.fp-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.fp-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 { margin-top: 0; color: #333; }
p { color: #666; font-size: 14px; margin-bottom: 25px; line-height: 1.6; }

.input-group { margin-bottom: 20px; text-align: right; }
.input-group input {
    width: 100%; padding: 12px; border: 1px solid #d1d5db;
    border-radius: 8px; outline: none; transition: 0.3s;
    box-sizing: border-box; font-family: inherit;
}
.input-group input:focus { border-color: #3b82f6; }

/* استایل OTP */
.otp-container {
    display: flex; justify-content: space-between; gap: 8px; margin-bottom: 25px;
}
.otp-input {
    width: 45px; height: 55px; text-align: center; font-size: 24px;
    font-weight: bold; border: 2px solid #e5e7eb; border-radius: 8px;
    outline: none; transition: 0.3s;
}
.otp-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }

/* نوار قدرت رمز عبور */
.strength-meter {
    height: 5px; background: #e5e7eb; margin-top: 8px; border-radius: 3px; overflow: hidden;
}
#strength-bar {
    height: 100%; width: 0; transition: all 0.3s ease;
}

/* دکمه‌ها */
.btn-primary, .btn-secondary {
    width: 100%; padding: 12px; border: none; border-radius: 8px;
    font-size: 15px; cursor: pointer; font-family: inherit; transition: 0.3s;
}
.btn-primary { background: #3b82f6; color: white; margin-bottom: 10px; }
.btn-primary:hover { background: #2563eb; }
.btn-secondary { background: #f3f4f6; color: #4b5563; }
.btn-secondary:hover { background: #e5e7eb; }
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    min-width: 250px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    direction: rtl;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-error { background-color: #ef4444; }
.toast-success { background-color: #22c55e; }
.input-group { 
    margin-bottom: 20px; 
    text-align: right; 
    position: relative; /* این خط اضافه شود */
}

/* استایل آیکون چشم */
.toggle-password {
    position: absolute;
    left: 12px;
    top: 12px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-password:hover {
    color: #4b5563;
}
.password-criteria {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
    font-size: 0.85rem;
    text-align: right;
    direction: rtl;
}

.password-criteria li {
    color: #dc3545; /* رنگ قرمز برای شرط‌های رعایت نشده */
    transition: color 0.3s ease;
    margin-bottom: 5px;
}

.password-criteria li::before {
    content: "✗ ";
    font-weight: bold;
    margin-left: 5px;
}

.password-criteria li.valid {
    color: #28a745; /* رنگ سبز برای شرط‌های رعایت شده */
}

.password-criteria li.valid::before {
    content: "✓ ";
}
/* کانتینر اصلی بخش تایمر */
.otp-timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

/* استایل متن شمارشگر معکوس */
.timer-text {
    font-size: 15px;
    color: #4a5568;
    background-color: #edf2f7;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid #e2e8f0;
    direction: ltr;
}

.resend-otp-btn {
    background: transparent;
    border: none;
    color: #0d6efd; /* رنگ آبی جذاب */
    font-size: 0.875rem; /* اندازه متن مناسب */
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* افکت هنگام هاور (وقتی دکمه فعال است) */
.resend-otp-btn:hover:not(:disabled) {
    background-color: rgba(13, 110, 253, 0.1); /* پس‌زمینه محو آبی */
    color: #0a58ca;
}

/* ظاهر دکمه وقتی تایمر در حال کار است و دکمه غیرفعال است */
.resend-otp-btn:disabled {
    color: #a0aec0; /* رنگ خاکستری */
    cursor: not-allowed;
    background: transparent;
}

.resend-otp-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor; /* هماهنگی رنگ آیکون با متن */
}