/* ═══════════════════════════════════════════════════════════════════════════
   WIT'S END — AUTH STYLESHEET
   Used by: enter.html · admin_login.html · door_login.html
   ───────────────────────────────────────────────────────────────────────────
   Loaded as <link rel="stylesheet" href="/static/css/auth.css">

   These three pages share a centered-card pattern with three small variations:
   - enter.html       → site-wide password gate (largest logo, 4rem)
   - admin_login.html → admin password (3.5rem logo, smaller card 340px)
   - door_login.html  → door staff password (2.8rem logo, mobile-tuned)

   The differences are encoded as body-level modifier classes:
     <body class="auth-page auth-enter">
     <body class="auth-page auth-admin">
     <body class="auth-page auth-door">
   ═════════════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════════════════════
   SECTION 1 — ROOT VARIABLES + BASE RESET
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --red: #C8321A;
  --red-deep: #a82516;
  --red-darker: #b02a16;          /* door variant uses this on hover */
  --black: #0a0a0a;
  --border: rgba(255,255,255,0.08);
  --border-input: rgba(255,255,255,0.10);
  --border-input-hi: rgba(255,255,255,0.12);  /* enter.html slightly more visible */
  --muted: rgba(255,255,255,0.4);
  --bg-input: rgba(255,255,255,0.06);
  --danger: #f87171;
  --font-big: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}


/* ════════════════════════════════════════════════════════════════════════════
   SECTION 2 — CARD CONTAINER
   The common centered card. Width caps differ per page.
   ════════════════════════════════════════════════════════════════════════════ */

.card {
  text-align: center;
  width: 100%;
  /* default — admin/door pages override with their own max-width below */
  max-width: 380px;
}


/* ════════════════════════════════════════════════════════════════════════════
   SECTION 3 — LOGO MARKS
   Each page uses a slightly different scale. The wordmark splits "WIT'S" (white)
   from "END" (red) — see the <span> in each template.
   ════════════════════════════════════════════════════════════════════════════ */

/* Default mark — used by enter.html (largest, 4rem) */
.logo-mark {
  font-family: var(--font-big);
  font-size: 4rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.logo-mark span { color: var(--red); }

/* Admin login variant — smaller, 3.5rem, .logo class */
.logo {
  font-family: var(--font-big);
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 4px;
}
.logo span { color: var(--red); }

/* Door login variant — smallest, 2.8rem, slight letter-spacing tweak */
.auth-door .logo {
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: .04em;
}


/* ════════════════════════════════════════════════════════════════════════════
   SECTION 4 — SUBTITLE / EYEBROW LINES
   Three variations:
     enter:    .logo-sub      — biggest letter-spacing, 48px gap below
     admin:    .sub           — smaller gap, "Admin Panel" copy
     door:     .subtitle      — slightly heavier weight, 36px gap below
   ════════════════════════════════════════════════════════════════════════════ */

.logo-sub {
  font-size: .7rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 48px;
}

.sub {
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 40px;
}

.subtitle {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}


/* ════════════════════════════════════════════════════════════════════════════
   SECTION 5 — INPUT LABEL (above the password field)
   ════════════════════════════════════════════════════════════════════════════ */

.label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 10px;
}

/* Admin login variant — slightly smaller, more weight */
.auth-admin .label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: rgba(255,255,255,.35);
  margin-bottom: 8px;
}

/* Door login variant — display:block, more spacing */
.auth-door .label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  margin-bottom: 8px;
}


/* ════════════════════════════════════════════════════════════════════════════
   SECTION 6 — PASSWORD INPUT
   ════════════════════════════════════════════════════════════════════════════ */

input[type=password] {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-input-hi);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  text-align: center;
  letter-spacing: .1em;
  margin-bottom: 14px;
  transition: border .2s;
}
input[type=password]:focus {
  border-color: rgba(200,50,26,.6);
}

/* Admin variant — smaller padding, slightly smaller text, looser margin */
.auth-admin input[type=password] {
  padding: 13px 16px;
  font-size: .95rem;
  border-color: var(--border-input);
  border-radius: 6px;
  margin-bottom: 12px;
  transition: border .2s;
}
.auth-admin input[type=password]:focus {
  border-color: rgba(200,50,26,.5);
}

/* Door variant — letter-spacing 1em, masked dots feel */
.auth-door input[type=password] {
  padding: 14px 16px;
  font-size: 1.1rem;
  border-radius: 8px;
  letter-spacing: .1em;
  -webkit-text-security: disc;
}


/* ════════════════════════════════════════════════════════════════════════════
   SECTION 7 — SUBMIT BUTTON
   Three variations of the same red CTA — sized differently per page.
   ════════════════════════════════════════════════════════════════════════════ */

.btn {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-big);
  font-size: 1.3rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--red-deep); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Admin variant — slightly smaller font, tighter padding */
.auth-admin .btn {
  padding: 13px;
  border-radius: 6px;
  font-size: 1.2rem;
  letter-spacing: .06em;
}

/* Door variant — top margin, slightly different hover deep */
.auth-door .btn {
  margin-top: 14px;
  font-size: 1.2rem;
  transition: background .15s;
}
.auth-door .btn:hover { background: var(--red-darker); }


/* ════════════════════════════════════════════════════════════════════════════
   SECTION 8 — ERROR MESSAGE
   Reserved space prevents layout shift when error appears.
   ════════════════════════════════════════════════════════════════════════════ */

.error {
  color: var(--danger);
  font-size: .82rem;
  margin-top: 10px;
  min-height: 20px;
}

/* Admin variant — slightly smaller font, smaller min-height */
.auth-admin .error {
  font-size: .8rem;
  margin-top: 8px;
  min-height: 18px;
}

/* Door variant — text-align center for the centered card layout */
.auth-door .error {
  text-align: center;
}


/* ════════════════════════════════════════════════════════════════════════════
   SECTION 9 — BACK / SECONDARY LINKS
   admin_login has a "Back to site" link below the form.
   door_login has an "Admin login →" link in its own .admin-link wrapper.
   ════════════════════════════════════════════════════════════════════════════ */

.back {
  display: block;
  margin-top: 20px;
  font-size: .75rem;
  color: rgba(255,255,255,.25);
  text-decoration: none;
}
.back:hover { color: rgba(255,255,255,.5); }

.admin-link {
  text-align: center;
  margin-top: 28px;
}
.admin-link a {
  font-size: .74rem;
  color: var(--muted);
  text-decoration: none;
}
.admin-link a:hover { color: #fff; }


/* ════════════════════════════════════════════════════════════════════════════
   SECTION 10 — PAGE-SPECIFIC CARD WIDTHS
   Three different max-widths for the three pages. These match the originals
   exactly so the visual feel of each gate doesn't shift.
   ════════════════════════════════════════════════════════════════════════════ */

.auth-enter .card { max-width: 380px; }
.auth-admin .card { max-width: 340px; }
.auth-door  .card { max-width: 360px; }
