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

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

  This file ONLY contains styles unique to the register page.
  Your teammate's class names and HTML structure are preserved
  exactly — only the visual styling has been updated.

  CONTENTS:
  1.  Page layout        — centres the card on screen
  2.  Register card      — glass panel container
  3.  Headings           — h1 and subtitle
  4.  Section labels     — dividers between form sections
  5.  Form grid          — 2-column layout for fields
  6.  Labels             — field labels with * indicator
  7.  Inputs             — text/email/password fields
  8.  Submit button      — purple gradient full-width
  9.  Divider            — hr separator
  10. Login link         — "Already registered?" row
  11. General links      — a, a:hover scoped to card
  12. Responsive         — single column on mobile
  ============================================================
*/


/* ============================================================
   1. PAGE LAYOUT
   Centres the register card vertically and horizontally.
   Extra vertical padding since this card is taller than login.
   ============================================================ */
.register-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 9rem 1.5rem 3rem;
    position: relative;
    z-index: 1;
}

.form-spacer {
    display: block;
    grid-column: 2 / 3; /* forces it into the right column */
}

/* ============================================================
   2. REGISTER CARD
   Wider than the login card (750px) to fit the 2-column grid.
   Same glass styling as the rest of the site.
   ============================================================ */
.register-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: 750px;
    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 — decorative, same as login */
.register-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
   ============================================================ */
.register-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;
}

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


/* ============================================================
   4. SECTION LABELS
   Small uppercase dividers between groups of fields.
   e.g. "Account Info" / "Address"
   ============================================================ */
.section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);               /* gold matches the eyebrow style  */
    margin: 1.5rem 0 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    grid-column: 1 / -1;             /* spans full width inside the grid */
}


/* ============================================================
   5. FORM GRID
   2-column layout for the input fields.
   Your teammate's grid structure is kept exactly —
   only colours and spacing are updated.
   ============================================================ */
.form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 1.5rem;
}

.form-grid > div {
    min-width: 0; /* prevents grid blowout on long inputs              */
}


/* ============================================================
   6. LABELS
   Scoped to .register-card so they don't affect nav or footer.
   The * required indicator is styled in gold.
   ============================================================ */
.register-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;
}


/* ============================================================
   7. INPUTS
   Scoped to .register-card to avoid affecting other pages.
   ============================================================ */
.register-card input {
    width: 100%;
    box-sizing: border-box;
    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;
}

.form-grid > div input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1.25rem;
}

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

/* Purple glow on focus — matches login page */
.register-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);
}


/* ============================================================
   8. SUBMIT BUTTON
   Full-width purple gradient — matches login page button.
   Scoped to .register-card so it doesn't affect nav buttons.
   ============================================================ */
.register-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.5rem;
    grid-column: 1 / -1;             /* spans full width in the grid    */
}

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


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


/* ============================================================
   10. LOGIN LINK
   "Already registered? Log in here!" row at the bottom.
   ============================================================ */
.login-link {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}

.register-card p {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}


/* ============================================================
   11. GENERAL LINKS
   Scoped to .register-card so nav links aren't affected.
   ============================================================ */
.register-card a {
    color: var(--purple-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Spacer — fills the empty right column after confirm password */
.form-spacer {
    display: block;
}

/* Section divider — spans both columns */
.form-section-label {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-label span {
    font-weight: 400;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.72rem;
}


/* ============================================================
   12. RESPONSIVE
   Stack to single column on mobile — grid becomes 1 column.
   ============================================================ */
@media (max-width: 620px) {

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .register-card {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }

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