/* ============================================
   PASSWORD RESET PAGES - Modern Design
   ============================================ */

/* ============================================
   FORGOT PASSWORD SECTION
   ============================================ */
#forgot-password-section,
#reset-code-section,
#reset-password-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    margin: 100px auto 40px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 450px;
}

/* ============================================
   HEADINGS
   ============================================ */
#forgot-password-section h2,
#reset-code-section h3,
#reset-password-section h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
}

/* ============================================
   DESCRIPTION TEXT
   ============================================ */
#forgot-password-section p,
#reset-code-section p,
#reset-password-section p {
    font-size: 15px;
    color: var(--gray);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ============================================
   FORM
   ============================================ */
#forgot-password-section form,
#reset-code-section form,
#reset-password-section form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ============================================
   LABELS
   ============================================ */
#forgot-password-section label,
#reset-code-section label,
#reset-password-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

/* ============================================
   INPUTS
   ============================================ */
#forgot-password-section input,
#reset-code-section input,
#reset-password-section input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-lighter);
    background-color: var(--white);
    font-size: 15px;
    font-family: 'Ebrima', sans-serif;
    color: var(--dark);
    transition: all var(--transition-fast);
}

#forgot-password-section input:focus,
#reset-code-section input:focus,
#reset-password-section input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.15);
}

#forgot-password-section input::placeholder,
#reset-code-section input::placeholder,
#reset-password-section input::placeholder {
    color: var(--gray-light);
}

/* ============================================
   CODE INPUT (Special styling for verification code)
   ============================================ */
.code-input {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
#forgot-password-section button,
#reset-code-section button,
#reset-password-section button {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Ebrima', sans-serif;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

#forgot-password-section button:hover,
#reset-code-section button:hover,
#reset-password-section button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#forgot-password-section button:active,
#reset-code-section button:active,
#reset-password-section button:active {
    transform: translateY(0);
}

#forgot-password-section button:disabled,
#reset-code-section button:disabled,
#reset-password-section button:disabled {
    background-color: var(--gray-light);
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   BACK LINK
   ============================================ */
.back-link {
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--primary);
}

.back-link i {
    font-size: 12px;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */
.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.success-icon i {
    font-size: 40px;
    color: #27ae60;
}

/* ============================================
   ERROR MESSAGE
   ============================================ */
.error-message {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

/* ============================================
   RESEND CODE LINK
   ============================================ */
.resend-link {
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray);
}

.resend-link button {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    margin: 0;
    width: auto;
    display: inline;
}

.resend-link button:hover {
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    #forgot-password-section,
    #reset-code-section,
    #reset-password-section {
        padding: 36px 28px;
        margin: 90px auto 32px;
    }

    #forgot-password-section h2,
    #reset-code-section h3,
    #reset-password-section h3 {
        font-size: 24px;
    }

    #forgot-password-section p,
    #reset-code-section p,
    #reset-password-section p {
        font-size: 14px;
    }

    #forgot-password-section input,
    #reset-code-section input,
    #reset-password-section input {
        padding: 12px 14px;
        font-size: 14px;
    }

    #forgot-password-section button,
    #reset-code-section button,
    #reset-password-section button {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #forgot-password-section,
    #reset-code-section,
    #reset-password-section {
        padding: 28px 20px;
        margin: 80px auto 24px;
        width: 95%;
    }

    #forgot-password-section h2,
    #reset-code-section h3,
    #reset-password-section h3 {
        font-size: 22px;
    }

    #forgot-password-section input,
    #reset-code-section input,
    #reset-password-section input {
        padding: 11px 12px;
    }

    #forgot-password-section button,
    #reset-code-section button,
    #reset-password-section button {
        padding: 13px 18px;
        font-size: 14px;
    }

    .code-input {
        font-size: 20px;
        letter-spacing: 6px;
    }
}
