/* ==========================================================================
   MASKED CITY — AUTH PAGES
   Shared stylesheet for login / register / forgot-password / reset-password
   / resend-verification. These pages render standalone (layout:false) and
   never touch the main shell, so they get their own small token set here
   rather than pulling in styles.css or tokens.css — same visual language
   (Anton/Oswald type, red/blue alignment colours, clipped-corner buttons)
   as the redesigned shell, but self-contained.

   Always light — auth pages don't have a theme toggle, they ARE the light
   treatment. Background is bg-light.jpeg; login additionally supports a
   video background on the pitch column (falls back to bg-light.jpeg with
   no <video> present, see .auth-video below).
   ========================================================================== */

* { box-sizing: border-box; }

:root {
  --a-bg:        #a4d1f7;
  --a-surface:   #ffffff;
  --a-surface-2: #f3f8fe;
  --a-line:      rgba(20,30,50,0.12);
  --a-line-2:    rgba(20,30,50,0.20);

  --a-red:       #d31026;
  --a-red-deep:  #8d0a1a;
  --a-red-glow:  rgba(211,16,38,0.35);
  --a-blue:      #0f6fc4;
  --a-blue-deep: #0a4d8c;
  --a-gold:      #a67500;
  --a-green:     #12864b;

  --a-text:      #16131a;
  --a-text-2:    rgba(20,19,26,0.68);
  --a-text-3:    rgba(20,19,26,0.50);

  --a-font-display: 'Bangers', Impact, cursive;
  --a-font-head:    'Anton', 'Arial Narrow', sans-serif;
  --a-font-ui:      'Oswald', 'Arial Narrow', sans-serif;
  --a-font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --a-t-fast: 120ms cubic-bezier(.4,0,.2,1);
  --a-t-mid:  220ms cubic-bezier(.4,0,.2,1);

  color-scheme: light;
}

html, body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--a-font-body);
  color: var(--a-text);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--a-bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.55)),
    url('/images/ui/bg-light.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

a { color: var(--a-blue); text-decoration: none; }

/* ==========================================================================
   SHARED FRAME — centered single card, used by forgot-password,
   reset-password, resend-verification. Login/register override with the
   two-column .auth-hero layout further down.
   ========================================================================== */
.auth-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

/* ==========================================================================
   WORDMARK — text-only brand mark, replaces the logo image. Bangers is the
   site's comic-title face, used sparingly (logo only) elsewhere, so this
   is the one place on these pages that's appropriate for it.
   ========================================================================== */
.auth-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--a-font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: .02em;
  margin-bottom: 26px;
}
.auth-wordmark .masked { color: var(--a-text); }
.auth-wordmark .city   { color: var(--a-red); }

/* Light-on-dark variant for the photo/video pitch column. */
.auth-pitch .auth-wordmark .masked { color: #fff; }
.auth-pitch .auth-wordmark .city   { color: #ff5a68; }

/* Small centered variant sitting above the card on the single-card pages. */
.auth-wordmark--center {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 22px;
}

/* ==========================================================================
   CARD — the frosted-glass form panel used everywhere.
   ========================================================================== */
.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--a-line-2);
  border-radius: 14px;
  box-shadow:
    0 24px 60px -20px rgba(15,40,80,0.35),
    0 2px 0 rgba(255,255,255,0.6) inset;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--a-red), var(--a-gold), var(--a-blue));
}

.auth-card-title {
  font-family: var(--a-font-head);
  font-size: 26px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--a-text);
  transform: skewX(-6deg);
  transform-origin: left;
  margin-bottom: 6px;
}

.auth-card-sub {
  font-family: var(--a-font-ui);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--a-text-3);
  letter-spacing: .02em;
  margin-bottom: 26px;
  line-height: 1.5;
}
.auth-card-sub strong { color: var(--a-text); font-weight: 600; }

/* ==========================================================================
   FORM FIELDS
   ========================================================================== */
.auth-field { margin-bottom: 16px; }

.auth-label {
  display: block;
  font-family: var(--a-font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--a-text-3);
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  background: var(--a-surface-2);
  border: 1.5px solid var(--a-line-2);
  border-radius: 8px;
  color: var(--a-text);
  font-family: var(--a-font-body);
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
  transition: border-color var(--a-t-fast), background var(--a-t-fast), box-shadow var(--a-t-fast);
}
.auth-input:focus {
  border-color: var(--a-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15,111,196,0.12);
}
.auth-input::placeholder { color: rgba(20,19,26,0.32); }

/* ==========================================================================
   THE SIGNUP BUTTON — this is the whole point. Big, glowing, unmissable.
   ========================================================================== */
.auth-btn {
  width: 100%;
  min-height: 50px;
  padding: 14px;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--a-red) 0%, #ef3247 100%);
  border: none;
  border-radius: 9px;
  color: #fff;
  font-family: var(--a-font-head);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px var(--a-red-glow);
  transition: transform var(--a-t-fast), box-shadow var(--a-t-fast), background var(--a-t-fast);
}
.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -8px var(--a-red-glow);
  background: linear-gradient(135deg, #e0142b 0%, var(--a-red) 100%);
}
.auth-btn:active { transform: translateY(0); box-shadow: 0 6px 16px -8px var(--a-red-glow); }

.auth-btn--ghost {
  background: var(--a-surface-2);
  color: var(--a-text);
  box-shadow: none;
  border: 1.5px solid var(--a-line-2);
}
.auth-btn--ghost:hover { border-color: var(--a-blue); box-shadow: none; background: #fff; }

.auth-forgot {
  display: block;
  text-align: right;
  font-family: var(--a-font-ui);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--a-text-3);
  margin-top: 10px;
  letter-spacing: .02em;
}
.auth-forgot:hover { color: var(--a-red); }

.auth-divider {
  height: 1px;
  background: var(--a-line);
  margin: 24px 0;
}

.auth-register-link {
  text-align: center;
  font-family: var(--a-font-ui);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--a-text-3);
}
.auth-register-link a { color: var(--a-red); font-weight: 600; }
.auth-register-link a:hover { color: var(--a-red-deep); }

.auth-flash {
  padding: 11px 14px;
  border-radius: 8px;
  font-family: var(--a-font-ui);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}
.auth-flash.error   { background: rgba(211,16,38,0.08); border: 1px solid rgba(211,16,38,0.25); color: var(--a-red-deep); }
.auth-flash.success { background: rgba(18,134,75,0.08); border: 1px solid rgba(18,134,75,0.25); color: var(--a-green); }

.auth-note {
  font-family: var(--a-font-ui);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--a-text-2);
  line-height: 1.6;
  margin-bottom: 22px;
}
.auth-note strong { color: var(--a-text); font-weight: 600; }

/* ==========================================================================
   HERO SHELL — login + register: two-column, pitch on the left, card on
   the right. Pitch column carries either a <video> background (login,
   when provided) or the bg-light.jpeg photo treatment shared with the
   rest of the light theme.
   ========================================================================== */
.auth-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 460px;
}

.auth-pitch {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 60px;
  background-color: #0d2e4d;
}

.auth-video,
.auth-pitch-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-pitch-photo {
  background-image: url('/images/ui/bg-light.jpeg');
  background-size: cover;
  background-position: center;
}

.auth-pitch-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(8,18,32,0.82) 0%, rgba(8,18,32,0.62) 45%, rgba(8,18,32,0.30) 100%);
}

.auth-pitch-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.auth-tagline {
  font-family: var(--a-font-head);
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
  transform: skewX(-6deg);
  transform-origin: left;
  margin-bottom: 10px;
}
.auth-tagline span { color: #ff5a68; }

.auth-subtitle {
  font-family: var(--a-font-ui);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  letter-spacing: .04em;
  margin-bottom: 40px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}
.auth-feature { display: flex; align-items: center; gap: 14px; }
.auth-feature-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
}
.auth-feature-text strong {
  display: block;
  font-family: var(--a-font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #fff;
}
.auth-feature-text span {
  font-family: var(--a-font-ui);
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}

.auth-live-stats {
  display: flex;
  gap: 22px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
.auth-stat { text-align: center; }
.auth-stat-value {
  display: block;
  font-family: var(--a-font-head);
  font-size: 21px;
  color: #ff5a68;
}
.auth-stat-label {
  font-family: var(--a-font-ui);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.auth-form-col {
  background: var(--a-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
}

/* ==========================================================================
   ALIGNMENT PICKER — register only.
   ========================================================================== */
.auth-align-label {
  display: block;
  font-family: var(--a-font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--a-text-3);
  margin-bottom: 8px;
}
.auth-align-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.auth-align-card {
  position: relative;
  border: 2px solid var(--a-line-2);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  background: var(--a-surface-2);
  transition: border-color var(--a-t-fast), background var(--a-t-fast), box-shadow var(--a-t-fast);
}
.auth-align-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
#heroCard    { border-color: rgba(15,111,196,0.35); }
#villainCard { border-color: rgba(211,16,38,0.35); }
#heroCard:hover    { border-color: rgba(15,111,196,0.65); }
#villainCard:hover { border-color: rgba(211,16,38,0.65); }
.auth-align-card.selected-hero {
  border-color: var(--a-blue); background: rgba(15,111,196,0.08);
  box-shadow: 0 0 0 3px rgba(15,111,196,0.12);
}
.auth-align-card.selected-villain {
  border-color: var(--a-red); background: rgba(211,16,38,0.08);
  box-shadow: 0 0 0 3px rgba(211,16,38,0.12);
}
.auth-align-badge {
  width: 44px; height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 2px solid var(--a-line-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #fff;
  transition: border-color var(--a-t-fast), background var(--a-t-fast);
}
.auth-align-badge img { width: 26px; height: 26px; object-fit: contain; }
#heroCard .auth-align-badge    { border-color: rgba(15,111,196,0.35); }
#villainCard .auth-align-badge { border-color: rgba(211,16,38,0.35); }
.auth-align-card.selected-hero .auth-align-badge    { border-color: var(--a-blue); background: rgba(15,111,196,0.12); }
.auth-align-card.selected-villain .auth-align-badge { border-color: var(--a-red); background: rgba(211,16,38,0.12); }
.auth-align-name {
  display: block;
  font-family: var(--a-font-head);
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--a-text);
  margin-bottom: 4px;
}
.auth-align-card.selected-hero .auth-align-name    { color: var(--a-blue-deep); }
.auth-align-card.selected-villain .auth-align-name { color: var(--a-red-deep); }
.auth-align-desc {
  font-family: var(--a-font-ui);
  font-size: 10px;
  font-weight: 400;
  color: var(--a-text-3);
  line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .auth-hero { grid-template-columns: 1fr; }
  .auth-pitch { padding: 40px 24px 28px; }
  .auth-tagline { font-size: 28px; }
  .auth-subtitle { margin-bottom: 26px; }
  .auth-features { margin-bottom: 26px; gap: 12px; }
  .auth-form-col { padding: 28px 20px 40px; }
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 22px; border-radius: 10px; }
  .auth-align-choice { gap: 8px; }
  .auth-align-card { padding: 10px 6px; }
  .auth-align-badge { width: 34px; height: 34px; margin-bottom: 5px; }
  .auth-align-badge img { width: 18px; height: 18px; }
  .auth-align-desc { display: none; }
  .auth-live-stats { flex-wrap: wrap; gap: 14px 22px; }
}
