/*
  ============================================================
  STYLESHEET: login.css
  Stick With Sam — Login Page
  /public/login_register/login.css
  ============================================================
  Loaded by login.php after global_style.css via:
    <link rel="stylesheet" href="login.css"/>

  global_style.css already handles:
    - CSS variables (:root)
    - Reset & base (*, body, html)
    - Background (.bg-wrap)
    - Navigation (nav, .nav-logo, .nav-link etc.)
    - Buttons (.btn-primary, .btn-ghost)
    - Footer

  This file ONLY contains styles unique to the login page.
  Your teammate's class names and HTML structure are preserved
  exactly — only the visual styling has been updated to match
  the Stick With Sam dark purple glassmorphism theme.

  CONTENTS:
  1.  Page layout      — centres the card on screen
  2.  Login card       — glass panel container
  3.  Headings         — h1 and subtitle
  4.  Form elements    — labels, inputs, focus states
  5.  Forgot password  — right-aligned link
  6.  Submit button    — purple gradient pill
  7.  Divider          — hr separator
  8.  Footer links     — "New here? Register now!"
  9.  General links    — a, a:hover
  10. Responsive       — mobile adjustments
  ============================================================
*/


/* ============================================================
   1. PAGE LAYOUT
   Centres the login card both horizontally and vertically.
   min-height accounts for the fixed navbar height.
   ============================================================ */
.login-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px); /* 80px = approx nav height      */
    padding: 7rem 1.5rem 3rem;
    position: relative;
    z-index: 1;                     /* sits above .bg-wrap            */
}


/* ============================================================
   2. LOGIN CARD
   Glass panel — matches the glassmorphism style used across
   the site. Replaces the old dark solid card.
   ============================================================ */
.login-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: 420px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(155, 63, 212, 0.15);
    /* Subtle entrance animation */
    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 — decorative */
.login-card::before {
    content: '';
    display: block;
    width: 64px;
    height: 64px;
    background: url('/assets/SWS_Icon.PNG') center/contain no-repeat;
    margin: 0 auto 1.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}


/* ============================================================
   3. HEADINGS
   h1 uses Playfair Display to match the rest of the site.
   .subtitle is the small muted text below the heading.
   ============================================================ */
.login-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text);             /* --text: #f0e8ff from global     */
    margin-bottom: 0.3rem;
    text-align: center;
    line-height: 1.2;
}

.login-card .subtitle {
    color: var(--muted);            /* --muted from global             */
    font-size: 0.83rem;
    margin-bottom: 2rem;
    text-align: center;
}


/* ============================================================
   4. FORM ELEMENTS
   Labels and inputs styled to match the glass theme.
   Overrides the global reset which zeros out padding/margin.
   ============================================================ */

/* Form group spacing */
.login-card form {
    display: flex;
    flex-direction: column;
}

/* Labels */
.login-card label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-soft);        /* --text-soft: #c8b8e8 from global */
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Input fields */
.login-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;
}

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

/* Focus state — purple glow matching the site accent */
.login-card input:focus {
    border-color: var(--purple-bright);  /* --purple-bright from global */
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 0 0 3px rgba(155, 63, 212, 0.2);
}


/* ============================================================
   5. FORGOT PASSWORD
   Right-aligned link below the password field.
   ============================================================ */
.forgot {
    text-align: right;
    margin-top: -0.75rem;   /* pulls it up closer to the input        */
    margin-bottom: 1.25rem;
}

.forgot a {
    color: var(--muted);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot a:hover {
    color: var(--purple-light);     /* --purple-light from global      */
}


/* ============================================================
   6. SUBMIT BUTTON
   Full-width purple gradient pill — matches .btn-primary
   from global_style.css but scoped to the login card so it
   doesn't affect the nav or other buttons.
   ============================================================ */
.login-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;
    margin-top: 0.25rem;
}

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


/* ============================================================
   7. DIVIDER
   Thin separator line between the form and the register link.
   ============================================================ */
.login-card hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 1.5rem 0;
}


/* ============================================================
   8. FOOTER LINKS
   "New here? Register now!" row at the bottom of the card.
   ============================================================ */
.login-footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

/* The paragraph tags your teammate used for these links */
.login-card p {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}


/* ============================================================
   9. GENERAL LINKS
   Scoped to .login-card so they don't affect nav links.
   ============================================================ */
.login-card a {
    color: var(--purple-light);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

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


/* ============================================================
   10. RESPONSIVE
   On very small screens, reduce card padding slightly.
   ============================================================ */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }

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