/* ============================================================
   BridgeQuest — Login / Landing screen  (Aurora Night)
   Depends on aurora.css tokens.
   Old .game-auth-* classes kept at bottom for any other pages
   that still reference them.
   ============================================================ */

/* ── Split layout ────────────────────────────────────────────── */
.entry {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
}
@media (max-width: 880px) { .entry { grid-template-columns: 1fr; } }

/* ── Left: brand hero ────────────────────────────────────────── */
.entry__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px,5vw,64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  background:
    radial-gradient(900px 600px at 110% 10%, color-mix(in oklab,var(--c-violet) 34%,transparent), transparent 55%),
    radial-gradient(700px 500px at -10% 110%, color-mix(in oklab,var(--c-coral) 28%,transparent), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--bg));
}
.entry__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask: linear-gradient(180deg,transparent,black 40%,black 70%,transparent);
}
@media (max-width: 880px) { .entry__hero { display: none; } }

/* Brand row */
.entry__brand {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  z-index: 1;
}
.entry__brand .brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
}
.entry__brand .brand__tag {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Mid copy */
.entry__hero-mid { position: relative; z-index: 1; }

.entry__kick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 18px;
  padding: 7px 13px;
  border-radius: 99px;
  background: color-mix(in oklab, var(--c-amber) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--c-amber) 26%, transparent);
}

.entry__hero-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.025em;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: .98;
  margin: 0 0 18px;
  text-wrap: balance;
  color: var(--ink);
}
.entry__hero-h1 em {
  font-style: normal;
  color: var(--c-coral);
}

.entry__lead {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 500px;
  margin: 0 0 26px;
}

/* Feature beats */
.entry__beats { display: flex; flex-wrap: wrap; gap: 10px; }
.beat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  border: 1px solid var(--line-2);
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(6px);
  color: var(--ink);
}
.beat i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}

/* Footer credits */
.entry__foot {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-faint);
  flex-wrap: wrap;
}
.entry__foot .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
}

/* Floating decorative tokens */
.floaters { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.floater {
  position: absolute;
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-card);
  opacity: .88;
  animation: entryBob 6s ease-in-out infinite;
}
.floater.f1 {
  top: 14%; right: 8%; width: 58px; height: 58px;
  background: linear-gradient(140deg, var(--c-amber), var(--c-coral));
  animation-delay: 0s;
}
.floater.f2 {
  top: 38%; right: 5%; width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--c-mint), var(--c-sky));
  animation-delay: 1.4s;
}
.floater.f3 {
  top: 58%; right: 7%; width: 52px; height: 52px;
  background: linear-gradient(140deg, var(--c-violet), var(--c-sky));
  animation-delay: 2.6s;
}
@keyframes entryBob {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-16px) rotate(4deg); }
}

/* ── Right: auth card ────────────────────────────────────────── */
.entry__auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  background: var(--bg);
}

.authcard { width: 100%; max-width: 380px; }
.authcard__h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -.01em;
  margin: 0 0 6px;
  color: var(--ink);
}
.authcard__sub {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0 0 24px;
}
.authcard__form { display: flex; flex-direction: column; gap: 0; }

/* Tab switcher */
.authtabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 24px;
}
.authtabs button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-mute);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
}
.authtabs button.on {
  background: var(--surface-3);
  color: var(--ink);
  box-shadow: 0 4px 12px -6px rgba(0,0,0,.5);
}

/* Form fields */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-family: var(--font-ui);
  background: var(--surface-2);
  border: 1.5px solid var(--line-2);
  color: var(--ink);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  box-sizing: border-box;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus {
  border-color: var(--c-coral);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-coral) 22%, transparent);
}
.field__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.field__row a {
  font-size: 12px;
  color: var(--c-sky);
  text-decoration: none;
  font-weight: 700;
}
.field__row a:hover { text-decoration: underline; }

/* Primary auth button */
.authbtn {
  width: 100%;
  padding: 15px;
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 16px;
  margin-top: 4px;
  background: linear-gradient(180deg, #ff8a6f, var(--c-coral));
  color: #2a0d05;
  box-shadow: 0 14px 30px -12px var(--c-coral);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform var(--t-fast);
  box-sizing: border-box;
}
.authbtn:hover { transform: translateY(-2px); }

/* Divider */
.authdiv {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.authdiv::before, .authdiv::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* Alt buttons (guest, signup) */
.authalt { display: flex; flex-direction: column; gap: 10px; }
.authalt__btn {
  width: 100%;
  padding: 13px;
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--line-2);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast);
  box-sizing: border-box;
}
.authalt__btn:hover { transform: translateY(-2px); background: var(--surface-3); }

/* Alert messages */
.entry-alert {
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  margin-bottom: 16px;
  background: color-mix(in oklab, var(--c-coral) 14%, var(--surface-2));
  border: 1px solid color-mix(in oklab, var(--c-coral) 30%, transparent);
  color: var(--ink);
}
.entry-alert--success {
  background: color-mix(in oklab, var(--c-mint) 14%, var(--surface-2));
  border-color: color-mix(in oklab, var(--c-mint) 30%, transparent);
}

/* ── Legacy .game-auth-* (keep for other pages using old CSS) ── */
.game-auth-page {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; padding: 2rem 1rem;
  background: var(--bg);
}
.game-auth-box {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-xl); padding: 32px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-pop);
}
.game-auth-box__header { margin-bottom: 24px; text-align: center; }
.game-auth-box__title { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--ink); margin: 12px 0 4px; }
.game-auth-box__subtitle { font-size: 14px; color: var(--ink-mute); margin: 0; }
.game-auth-box__logo svg { stroke: var(--c-coral); }
.game-form-group { margin-bottom: 14px; }
.game-form-label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px; }
.game-form-input { width: 100%; padding: 12px 14px; border-radius: var(--r-md); font-size: 15px; background: var(--surface-2); border: 1.5px solid var(--line-2); color: var(--ink); outline: none; transition: border-color var(--t-fast); box-sizing: border-box; }
.game-form-input:focus { border-color: var(--c-coral); }
.game-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--r-md); font-weight: 700; font-size: 14px; cursor: pointer; border: none; transition: transform var(--t-fast); }
.game-btn--primary { background: linear-gradient(180deg,#ff8a6f,var(--c-coral)); color: #2a0d05; }
.game-btn--ghost   { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); }
.game-btn--large   { padding: 14px 20px; font-size: 16px; }
.game-btn--full-width { width: 100%; box-sizing: border-box; }
.game-btn:hover { transform: translateY(-2px); }
.game-auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-faint); font-size: 12px; }
.game-auth-divider::before,.game-auth-divider::after { content:""; height:1px; flex:1; background:var(--line); }
.game-auth-box__footer { margin-top: 20px; text-align: center; }
.game-auth-box__alt-text { font-size: 13px; color: var(--ink-mute); margin: 0 0 10px; }
.game-auth-messages { margin-bottom: 16px; }
.game-alert { padding: 10px 14px; border-radius: var(--r-md); font-size: 14px; background: color-mix(in oklab,var(--c-coral) 14%,var(--surface-2)); border: 1px solid color-mix(in oklab,var(--c-coral) 28%,transparent); color: var(--ink); margin-bottom: 8px; }
