/* استایل‌های اختصاصی صفحه فراموشی رمز (هدر/فوتر مشترک در common.css) */

.forgot-section {
    display: flex;
    justify-content: center;
    padding: 4rem 1.2rem;
}

.card3 {
    background: var(--surface);
    padding: 2.6rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.card3 p {
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 1.4rem;
}

#change-pass {
    display: flex;
    flex-direction: column;
}

#change-pass label {
    margin-bottom: 0.8rem;
    color: var(--navy);
    font-weight: 600;
}

#change-pass input[type="text"] {
    width: 100%;
    padding: 13px;
    border: 1.5px solid var(--border-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#change-pass input[type="text"]:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.15);
}

#change-pass button {
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, var(--navy), var(--accent-blue-dark));
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-sm);
}

#change-pass button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.result {
    margin-top: 20px;
    background: var(--light);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    word-break: break-all;
    border: 1px solid var(--border-gray);
    text-align: left;
    direction: ltr;
}

#otp-request-form input,
#otp-verify-form input {
    width: 100%;
    padding: 13px;
    border: 1.5px solid var(--border-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#otp-request-form input:focus,
#otp-verify-form input:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.15);
}

#otp-request-form label,
#otp-verify-form label {
    display: block;
    text-align: right;
    margin-bottom: 0.6rem;
    color: var(--navy);
    font-weight: 600;
}

#otp-request-form button[type="submit"],
#otp-verify-form button[type="submit"] {
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, var(--navy), var(--accent-blue-dark));
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-sm);
}

#otp-request-form button[type="submit"]:hover,
#otp-verify-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.resend-line {
    margin-top: 1rem;
    font-size: 13px;
}

#resend-otp-btn {
    border: none;
    background: none;
    color: var(--accent-blue-dark);
    cursor: pointer;
    font-weight: 600;
}

#resend-otp-btn:disabled {
    color: var(--slate);
    cursor: not-allowed;
}

.forgot-message {
    margin-top: 1.2rem;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--light);
    border: 1px solid var(--border-gray);
    color: var(--navy);
}

.forgot-message.is-error {
    background: #fdecea;
    border-color: #f5c2c0;
    color: #b3261e;
}

.button-link {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 13px 28px;
    background: linear-gradient(90deg, var(--navy), var(--accent-blue-dark));
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .card3 {
        padding: 1.8rem 1.4rem;
    }
}
