/* Auth gate (web / installed PWA login + register) */
.auth-root {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}
.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 26px 22px 22px;
  text-align: center;
}
.auth-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display, system-ui); font-weight: 900; font-size: 26px;
}
.auth-logo { font-size: 30px; filter: drop-shadow(0 2px 8px rgba(255, 216, 74, 0.5)); }
.auth-tagline { color: var(--text-3); font-size: 13px; margin: 8px 0 18px; line-height: 1.4; }

.auth-tabs {
  display: flex; gap: 6px; background: rgba(255, 255, 255, 0.05);
  border-radius: var(--r-lg, 14px); padding: 4px; margin-bottom: 16px;
}
.auth-tab {
  flex: 1; padding: 9px 8px; border: 0; border-radius: var(--r-md, 10px);
  background: transparent; color: var(--text-2); font-weight: 700; font-size: 13px;
  cursor: pointer; transition: background .15s, color .15s;
}
.auth-tab.is-on { background: var(--grad-gold, linear-gradient(135deg, #ffd84a, #f5a623)); color: #2a1c00; }

.auth-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.auth-input {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; border-radius: var(--r-md, 10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04); color: var(--text-1, #fff);
  font-size: 15px; outline: none;
}
.auth-input:focus { border-color: var(--gold-2, #ffd84a); background: rgba(255, 255, 255, 0.07); }
.auth-input::placeholder { color: var(--text-3); }

.auth-age { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-3); line-height: 1.4; }
.auth-age input { margin-top: 2px; }
.auth-age a { color: var(--gold-2, #ffd84a); }

.auth-submit { margin-top: 4px; width: 100%; padding: 13px; font-size: 15px; font-weight: 800; }
.auth-err { color: var(--danger, #ff6b6b); font-size: 12.5px; margin: 2px 0 0; text-align: center; }

.auth-alt { position: relative; margin: 16px 0 12px; }
.auth-alt .auth-or {
  position: relative; z-index: 1; background: var(--card-bg, #160e3e); padding: 0 12px;
  color: var(--text-3); font-size: 12px;
}
.auth-alt::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: rgba(255, 255, 255, 0.1);
}
.auth-tg {
  width: 100%; padding: 12px; border-radius: var(--r-md, 10px);
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04);
  color: var(--text-1, #fff); font-size: 14px; font-weight: 700; cursor: pointer;
}
.auth-tg:hover { background: rgba(255, 255, 255, 0.08); }

/* Main menu under the auth card — lets a logged-out visitor reach the public
   pages instead of being trapped on the gate. Subtle by default, gold on
   hover/focus; wraps on small screens; accessible focus ring + tap targets. */
.auth-menu {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 14px;
  width: 100%; max-width: 380px;
  margin: 18px auto 0;
  padding: 4px 8px;
}
.auth-menu-link {
  color: var(--text-3); font-size: 13px; font-weight: 600;
  text-decoration: none; line-height: 1.2;
  padding: 6px 4px; border-radius: 6px;
  transition: color .15s;
}
.auth-menu-link:hover { color: var(--gold-2, #ffd84a); }
.auth-menu-link:focus-visible { outline: 2px solid var(--gold-2, #ffd84a); outline-offset: 2px; color: var(--gold-2, #ffd84a); }
