/*
  ============================================================
  STYLESHEET: forgot_password.css
  Stick With Sam — Forgot Password Page
  /public/login_register/forgot_password.css
  ============================================================
  Loaded after global_style.css via $pageCSS in header.php.

  global_style.css already handles:
    - CSS variables, reset, background, nav, buttons, footer

  This file ONLY contains styles unique to this page.
  Your teammate's class names are preserved exactly.

  CONTENTS:
  1.  Page layout       — centres the card
  2.  Card              — glass panel container
  3.  Headings          — h1 and subtitle
  4.  Info text         — the three paragraph blocks
  5.  Form elements     — label, input, focus
  6.  Submit button     — purple gradient
  7.  Divider           — hr separator
  8.  Footer link       — back to login row
  9.  General links     — scoped to card
  10. Responsive        — mobile adjustments
  ============================================================
*/


/* ============================================================
   1. PAGE LAYOUT
   ============================================================ */
.forgot-password-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 8rem 1.5rem 3rem;
    position: relative;
    z-index: 1;
}


/* ============================================================
   2. CARD
   Slightly wider than login (620px) to fit the info text.
   ============================================================ */
.forgot-password-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 2.75rem 2.5rem;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(155, 63, 212, 0.15);
    animation: cardIn 0.5s ease both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Sam icon above the card */
.forgot-password-card::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    background: url('/assets/SWS_Icon.PNG') center/contain no-repeat;
    margin: 0 auto 1.25rem;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}


/* ============================================================
   3. HEADINGS
   ============================================================ */
.forgot-password-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.3rem;
    text-align: center;
    line-height: 1.2;
}

.forgot-password-card .subtitle {
    color: var(--muted);
    font-size: 0.83rem;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.6;
}


/* ============================================================
   4. INFO TEXT
   The three instructional paragraphs above the form.
   ============================================================ */
.forgot-password-text {
    font-size: 0.82rem;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    padding: 0;
}

/* Last paragraph gets extra space before the form */
.forgot-password-text:last-of-type {
    margin-bottom: 0;
}


/* ============================================================
   5. FORM ELEMENTS
   ============================================================ */
.forgot-password-card form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
}

.forgot-password-card label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.forgot-password-card input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    outline: none;
    font-size: 0.88rem;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.forgot-password-card input::placeholder {
    color: var(--muted);
}

.forgot-password-card input:focus {
    border-color: var(--purple-bright);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 0 0 3px rgba(155, 63, 212, 0.2);
}


/* ============================================================
   6. SUBMIT BUTTON
   ============================================================ */
.forgot-password-card button[type="submit"] {
    width: 100%;
    padding: 0.82rem;
    background: linear-gradient(90deg, var(--purple-bright), var(--pink));
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 24px rgba(155, 63, 212, 0.4);
    transition: opacity 0.2s, transform 0.15s;
}

.forgot-password-card button[type="submit"]:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}


/* ============================================================
   7. DIVIDER
   ============================================================ */
.forgot-password-card hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 1.5rem 0;
}


/* ============================================================
   8. FOOTER LINK
   "Remember your password? Back to Log In"
   ============================================================ */
.forgot-password-footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}


/* ============================================================
   9. GENERAL LINKS — scoped to card
   ============================================================ */
.forgot-password-card a {
    color: var(--purple-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password-card a:hover { color: #fff; }


/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    .forgot-password-card {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }

    .forgot-password-card h1 { font-size: 1.5rem; }
}