/* Shared auth gate pages (login.html, signup.html) — static pattern background, centered card */
:root {
  --yellow: #a8ff78;
  --purple: #78ffd6;
  --panel: rgba(10, 22, 18, 0.92);
  --border: rgba(120, 255, 214, 0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  font-family: 'Nunito', system-ui, sans-serif;
  color: #e8fff4;
  overflow-x: hidden;
  background: #071210;
}
.auth-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 12% 18%, rgba(168, 255, 120, 0.2), transparent 52%),
    radial-gradient(ellipse 75% 50% at 88% 82%, rgba(120, 255, 214, 0.22), transparent 50%),
    linear-gradient(165deg, #071210 0%, #0f221c 45%, #0a1814 100%);
}
.auth-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(168, 255, 120, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 255, 214, 0.08) 1px, transparent 1px);
  background-size: 140px 140px;
  pointer-events: none;
}
.auth-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 70% at 50% 100%, rgba(0, 0, 0, 0.42) 0%, transparent 58%);
  pointer-events: none;
}
.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 28px);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(120, 255, 214, 0.15) inset,
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(120, 255, 214, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.auth-title {
  font-family: 'Titan One', 'Nunito', sans-serif;
  font-weight: 400;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(105deg, #fff 0%, var(--yellow) 40%, var(--purple) 75%, #fde9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-sub {
  text-align: center;
  font-weight: 900;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 22px;
}
.auth-label {
  display: block;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid rgba(238, 102, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1rem;
}
.auth-input:focus {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
.auth-btn {
  width: 100%;
  margin-top: 8px;
  padding: 15px 20px;
  border: none;
  border-radius: 999px;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, #fffef0 0%, var(--yellow) 45%, #e6d020 100%);
  color: #0a0a0a;
  box-shadow: 0 8px 28px rgba(255, 255, 160, 0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.auth-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.auth-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.auth-links {
  margin-top: 18px;
  text-align: center;
  font-weight: 900;
  font-size: 0.88rem;
}
.auth-links a {
  color: var(--yellow);
  text-decoration: none;
}
.auth-links a:hover { text-decoration: underline; }
.auth-msg {
  min-height: 1.35rem;
  margin-bottom: 10px;
  font-weight: 900;
  font-size: 0.85rem;
  text-align: center;
  color: #ff8a80;
}
.auth-msg.ok { color: #b9f6ca; }
