/* Rollster auth shell — shared by login.php and signup.php */

:root {
  --ink: #090c1a;
  --ink-panel: #121732;
  --ink-mute: #8b93b8;
  --hairline-dark: rgba(148, 163, 255, 0.16);
  --paper: #f5f6fb;
  --paper-ink: #12142a;
  --paper-mute: #676c88;
  --hairline-light: #e1e3f0;
  --accent-a: #6d5bff;
  --accent-b: #22d3ee;
  /* Darker than the decorative #7c6cff/#22d3ee pair used elsewhere on this
     panel — those measure 3.86:1 / 1.81:1 for white text, below WCAG AA's
     4.5:1. This pair holds >=4.7:1 end to end. */
  --accent-gradient: linear-gradient(135deg, #5744c9 0%, #0b7f8c 100%);
  --signal: #7c6cff;
  --signal-ink: #ffffff;
  --confirm: #2fd48f;
  --error: #ef4a6c;
  --error-bg: #fce8ec;
  --error-ink: #b23252;
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--font-body);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 5px 1fr;
}

/* A thin seam of color at the boundary between the two panels — different
   gradient per page (see .auth-seam-login/-signup) so the color itself
   tells you which screen you're on when you move between login/signup. */
.auth-seam {
  background: linear-gradient(180deg, var(--seam-from), var(--seam-to));
}

.auth-seam-login { --seam-from: #5744c9; --seam-to: #0b7f8c; }
.auth-seam-signup { --seam-from: #5744c9; --seam-to: #c62f52; }

/* ---------- Brand panel ---------- */

.brand-panel {
  background: var(--ink);
  color: #fff;
  padding: 2.75rem 3.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 360px at 88% -8%, rgba(109, 91, 255, 0.35), transparent 62%),
    radial-gradient(480px 360px at -8% 105%, rgba(34, 211, 238, 0.22), transparent 60%),
    radial-gradient(900px 500px at 50% 40%, rgba(109, 91, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  position: relative;
}

.brand-ll { color: var(--signal); }

.brand-eyebrow {
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--signal);
  text-transform: uppercase;
  position: relative;
}

.brand-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1rem;
  position: relative;
}

.brand-sub {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #cbd0dc;
  max-width: 36ch;
  position: relative;
}

/* Signature: rotating ticket stub */

.stub {
  margin: 1.5rem 0 1.75rem;
  display: flex;
  background: var(--ink-panel);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-lg);
  max-width: 420px;
  position: relative;
  box-shadow:
    0 20px 40px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(109, 91, 255, 0.08),
    0 0 32px -6px rgba(34, 211, 238, 0.18);
}

.stub-main {
  flex: 1.15;
  padding: 0.9rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.stub-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.stub-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.stub-code-section {
  flex: 1;
  position: relative;
  border-left: 2px dashed var(--hairline-dark);
  padding: 0.9rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}

.stub-code-section::before,
.stub-code-section::after {
  content: "";
  position: absolute;
  left: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
}
.stub-code-section::before { top: -9px; }
.stub-code-section::after { bottom: -9px; }

.stub-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.stub-live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--confirm);
  box-shadow: 0 0 0 0 rgba(47, 212, 143, 0.6);
  animation: pulse 2s infinite;
}

.stub-code {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.stub-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.stub-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  width: 100%;
  transform-origin: left;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 212, 143, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(47, 212, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 212, 143, 0); }
}

/* Feature list — five stacked rows, icon + title + description */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  flex: 1;
}

.feature {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-top: 1px solid var(--hairline-dark);
}

.feature:first-child { border-top: none; padding-top: 0; }

.feature-icon {
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signal);
}

.feature-icon svg { width: 15px; height: 15px; }
.feature.accent-confirm .feature-icon { color: var(--confirm); }

.feature-title {
  font-weight: 700;
  font-size: 0.87rem;
  color: #fff;
  display: block;
}

.feature-desc {
  font-size: 0.79rem;
  line-height: 1.4;
  color: var(--ink-mute);
  margin-top: 0.1rem;
}

.brand-footer {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: #5b6373;
  text-transform: uppercase;
  position: relative;
}

/* ---------- Form panel ---------- */

.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: var(--paper);
}

.form-card { width: 100%; max-width: 360px; }

.form-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--paper-ink);
  margin-bottom: 2.25rem;
}

.form-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: -0.005em;
  margin: 0 0 0.4rem;
}

.form-subheading {
  font-size: 0.9rem;
  color: var(--paper-mute);
  margin: 0 0 1.85rem;
}

.field { margin-bottom: 1.15rem; }

/* Mono, uppercase, tracked-out — the same "eyebrow" vocabulary the venue
   copy already uses (ATTENDANCE, VERIFIED / GENERAL ADMISSION), reused
   here instead of a generic bold sans label. */
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 0.45rem;
}

.field-control { position: relative; }

.field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--paper-ink);
  background: #fff;
  border: 1.5px solid var(--hairline-light);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-control.has-toggle input { padding-right: 2.6rem; }

.field input:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(109, 91, 255, 0.16);
}

.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--paper-mute);
  cursor: pointer;
}

.password-toggle:hover { color: var(--paper-ink); background: var(--paper); }
.password-toggle svg { position: static; transform: none; width: 18px; height: 18px; pointer-events: auto; }

.btn-google {
  width: 100%;
  padding: 0.66rem 1rem;
  background: #fff;
  border: 1.5px solid var(--hairline-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--paper-ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-google:hover { border-color: #c9c2b0; }
.btn-google:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.btn-google svg { width: 18px; height: 18px; flex: none; }

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.4rem 0;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline-light);
}

.divider span {
  font-size: 0.72rem;
  color: var(--paper-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-primary {
  width: 100%;
  padding: 0.78rem 1rem;
  margin-top: 0.4rem;
  background: var(--accent-gradient);
  color: var(--signal-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(109, 91, 255, 0.55);
  transition: box-shadow 0.18s ease, transform 0.1s ease;
}

.btn-primary:hover { box-shadow: 0 10px 26px -6px rgba(34, 211, 238, 0.5); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible { outline: 2px solid var(--paper-ink); outline-offset: 2px; }

.form-error {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--error-bg);
  color: var(--error-ink);
  font-size: 0.82rem;
  border-radius: var(--radius);
}

.form-alt {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--paper-mute);
  text-align: center;
}

.form-legal {
  font-size: 0.78rem;
  color: var(--paper-mute);
  text-align: center;
  margin-top: 1rem;
}

.form-alt a {
  color: var(--paper-ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--signal);
}

.form-alt a:hover { color: var(--signal); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* ---------- Entrance ---------- */

.brand-panel > * {
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.brand-wordmark { animation-delay: 0s; }
.brand-eyebrow { animation-delay: 0.05s; }
.brand-headline { animation-delay: 0.1s; }
.brand-sub { animation-delay: 0.15s; }
.stub { animation-delay: 0.2s; }
.feature-list { animation-delay: 0.25s; }
.brand-footer { animation-delay: 0.3s; }

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

@media (prefers-reduced-motion: reduce) {
  .brand-panel > * { animation: none; }
  .stub-bar-fill { transition: none !important; }
  .stub-live .dot { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-seam { width: 100%; height: 5px; }
  .brand-panel { padding: 2.25rem 1.75rem; }
  .brand-headline { font-size: clamp(2rem, 8vw, 2.6rem); }
  .stub { max-width: 100%; }
  .form-panel { padding: 2.5rem 1.75rem 3.5rem; }
}

@media (max-width: 640px) {
  .brand-sub { max-width: none; }
  .feature-desc { max-width: 46ch; }
}
