/* Stadium Speaker — shared brand styles (matches landing page) */

:root {
  --charcoal: #3c1a47;
  --lime: #b6ff00;
  --soft-white: #f5f5f5;
  --muted: #bdbdbd;
  --black: #000000;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body.auth-page {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--soft-white);
  background: var(--black);
}

.auth-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 70% 15%, rgba(182, 255, 0, 0.07), transparent 50%),
    radial-gradient(ellipse at 15% 85%, rgba(60, 26, 71, 0.95), transparent 55%),
    linear-gradient(145deg, var(--charcoal) 0%, var(--black) 55%);
}

.auth-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.auth-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--lime);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 900;
}

.auth-nav-link {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-nav-link:hover {
  color: var(--lime);
}

.auth-main {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 5rem);
  padding: 1.5rem;
}

.auth-card-wrap {
  width: 100%;
  max-width: 26rem;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(182, 255, 0, 0.3);
  background: rgba(182, 255, 0, 0.08);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.auth-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--lime);
  animation: auth-pulse 2s ease-in-out infinite;
}

@keyframes auth-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.auth-club-name {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.auth-club-sub {
  margin: 0.35rem 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-glass {
  padding: 1.75rem;
  border-radius: 2rem;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--charcoal) 90%, #000) 0%,
    color-mix(in srgb, #000 85%, var(--charcoal)) 100%
  );
  border: 1px solid rgba(245, 245, 245, 0.06);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
}

.auth-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-tab:hover {
  color: var(--soft-white);
}

.auth-tab.is-active {
  background: var(--lime);
  color: var(--black);
}

.auth-panel[hidden] {
  display: none;
}

.auth-field {
  display: block;
  margin-bottom: 1rem;
}

.auth-field span {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(245, 245, 245, 0.1);
  border-radius: 0.875rem;
  background: rgba(0, 0, 0, 0.45);
  color: var(--soft-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(182, 255, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(182, 255, 0, 0.12);
}

.auth-field input::placeholder {
  color: rgba(189, 189, 189, 0.5);
}

.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: 9999px;
  background: var(--lime);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 32px rgba(182, 255, 0, 0.2);
}

.auth-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(182, 255, 0, 0.35);
}

.auth-hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.auth-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.875rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.auth-alert-error {
  background: rgba(220, 60, 60, 0.12);
  border: 1px solid rgba(220, 60, 60, 0.35);
  color: #ffb4b4;
}

.auth-alert-success {
  background: rgba(182, 255, 0, 0.08);
  border: 1px solid rgba(182, 255, 0, 0.28);
  color: var(--lime);
}

.auth-dev-link {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.875rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(182, 255, 0, 0.2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  word-break: break-all;
  color: var(--muted);
}

.auth-dev-link a {
  color: var(--lime);
}

.auth-footer-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(189, 189, 189, 0.6);
}
