/* Standalone login/register page -- linked alongside theme.css. This used
   to be an overlay shown inside the game shell; now it's a real page of its
   own at /login.html, so it just centers on the full viewport instead of
   sitting in a fixed overlay on top of something else. */
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #131c2e 0%, var(--bg) 60%);
  padding: 20px;
}

.auth-box {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  width: 320px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
  .auth-box { padding: 24px 20px; }
  /* iOS Safari auto-zooms on focusing any input with font-size < 16px --
     bump just on mobile rather than changing the desktop input size. */
  #auth-form input, #auth-form select { font-size: 16px; }
}

.auth-logo-link { text-decoration: none; }

.auth-title {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 4px; }
.auth-error { color: var(--bad); background: var(--bad-bg); padding: 8px 10px; border-radius: 6px; font-size: 12px; }

#auth-form { display: flex; flex-direction: column; gap: 10px; }
#auth-form input,
#auth-form select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--panel-bg-alt);
  color: var(--text);
  font-family: var(--font-ui);
}
#auth-form input:focus,
#auth-form select:focus { outline: none; border-color: var(--accent); }

.auth-box .btn { width: 100%; }
