/* =========================
   FORGOT PASSWORD
========================= */

.forgot-password-section {
    min-height: 75vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8rem 1.5rem 5rem;

    background: #f8f5f5;
}

.forgot-password-container {
    width: min(500px, 100%);
}

.forgot-password-content {
    padding: 3rem;

    background: var(--white);

    border-radius: 24px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.08);
}


/* =========================
   HEADING
========================= */

.forgot-password-content h1 {
    margin: 0 0 1rem;

    color: var(--primary);

    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;

    text-align: center;
}

.forgot-password-text {
    max-width: 390px;

    margin: 0 auto 2rem;

    color: #6b6265;

    font-size: 0.95rem;
    line-height: 1.7;

    text-align: center;
}


/* =========================
   FORM
========================= */

#forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.forgot-password-content .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.forgot-password-content label {
    color: var(--primary-dark);

    font-size: 0.9rem;
    font-weight: 700;
}

.forgot-password-content input {
    width: 100%;

    padding: 0.95rem 1rem;

    border: 1px solid #ddd4d6;
    border-radius: 12px;

    background: var(--white);

    color: #222;

    font-family: inherit;
    font-size: 1rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.forgot-password-content input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(116, 26, 50, 0.1);
}


/* =========================
   MESSAGE
========================= */

.forgot-password-message {
    display: none;

    margin: 0;

    padding: 0.85rem 1rem;

    border-radius: 10px;

    font-size: 0.9rem;
    line-height: 1.5;

    text-align: center;
}

.forgot-password-message.success {
    display: block;

    background: #edf7f0;

    color: #28623a;
}

.forgot-password-message.error {
    display: block;

    background: #fff0f0;

    color: #a52a2a;
}


/* =========================
   BUTTON
========================= */

#reset-password-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 0.25rem;

    padding: 0.95rem 1.5rem;

    border: none;
    border-radius: 999px;

    background: var(--primary);

    color: var(--white);

    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

#reset-password-btn:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}

#reset-password-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}


/* =========================
   BACK TO LOGIN
========================= */

.back-to-login {
    display: block;

    margin-top: 1.75rem;

    color: var(--primary);

    font-size: 0.9rem;
    font-weight: 600;

    text-align: center;
    text-decoration: none;
}

.back-to-login:hover {
    text-decoration: underline;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .forgot-password-section {
        min-height: 70vh;

        padding:
            7rem
            1rem
            4rem;
    }

    .forgot-password-content {
        padding:
            2.25rem
            1.5rem;

        border-radius: 20px;
    }

    .forgot-password-content h1 {
        font-size: 2rem;
    }

}