/* ============================================================
   🔐 Forgot Password Page Specific Styles
   با پشتیبانی از تم (روشن/تاریک)
   ============================================================ */

/* ============================================================
   📑 MAIN LAYOUT
   ============================================================ */
.forgot-main {
    padding: 100px 0 60px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.forgot-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 45px 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-speed) ease;
}

@media (max-width: 768px) {
    .forgot-wrapper {
        padding: 30px 25px;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    .forgot-wrapper {
        padding: 25px 20px;
    }
}

/* ============================================================
   📝 HEADER
   ============================================================ */
.forgot-header {
    text-align: center;
    margin-bottom: 35px;
}

.forgot-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
}

.forgot-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.forgot-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================================
   📋 STEPS INDICATOR
   ============================================================ */
.steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transition: all var(--transition-speed) ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.8;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.step.active .step-circle {
    background: var(--gradient-btn);
    border-color: var(--primary-color);
    color: white;
}

.step.completed .step-circle {
    background: #00c853;
    border-color: #00c853;
    color: white;
}

.step.completed .step-circle span {
    display: none;
}

.step.completed .step-circle i {
    display: block;
}

.step-circle i {
    display: none;
    font-size: 16px;
}

.step-label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.step.active .step-label {
    color: var(--text-primary);
}

/* ============================================================
   📨 MESSAGES
   ============================================================ */
.forgot-message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.forgot-message-error {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.25);
}

.forgot-message-success {
    background: rgba(0, 200, 83, 0.1);
    color: #00c853;
    border: 1px solid rgba(0, 200, 83, 0.25);
}

.forgot-message-info {
    background: rgba(255, 215, 0, 0.08);
    color: var(--secondary-color);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   📝 FORM STEPS
   ============================================================ */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* ============================================================
   📝 FORM
   ============================================================ */
.forgot-form .form-group {
    margin-bottom: 22px;
}

.forgot-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.forgot-form label i {
    color: var(--primary-color);
    width: 20px;
}

.forgot-form input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.forgot-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(106, 17, 203, 0.08);
}

.forgot-form input::placeholder {
    color: var(--text-dark);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: color var(--transition-speed) ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.form-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.form-hint {
    color: var(--text-dark);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ============================================================
   📱 CODE INPUTS
   ============================================================ */
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.code-input {
    width: 50px;
    height: 58px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    padding: 0 !important;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: all var(--transition-speed) ease;
}

.code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.12);
}

.code-input::-webkit-outer-spin-button,
.code-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.code-input[type="number"] {
    -moz-appearance: textfield;
}

@media (max-width: 480px) {
    .code-input {
        width: 42px;
        height: 50px;
        font-size: 22px;
    }
}

/* ============================================================
   ⏱️ TIMER
   ============================================================ */
.timer-text {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 15px;
}

.resend-link {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    transition: color var(--transition-speed) ease;
}

.resend-link:hover {
    color: var(--secondary-color);
}

/* ============================================================
   🎯 BUTTONS
   ============================================================ */
.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

.btn-block:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary-block {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    margin-top: 10px;
    font-family: var(--font-family);
}

.btn-secondary-block:hover {
    background: var(--bg-input);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

/* ============================================================
   📋 FOOTER
   ============================================================ */
.forgot-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.forgot-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-speed) ease;
}

.forgot-footer a:hover {
    color: var(--primary-color);
}

/* ============================================================
   ✅ SUCCESS STATE
   ============================================================ */
.success-state {
    text-align: center;
    padding: 20px 0;
}

.success-state i {
    font-size: 4rem;
    color: #00c853;
    margin-bottom: 20px;
    display: block;
}

.success-state h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.success-state p {
    color: var(--text-muted);
    line-height: 1.7;
}