/* ========================================================
   AUTH MODAL: LOGIN, REGISTER & GOOGLE AUTH STYLES
   ======================================================== */
.auth-modal-container {
  max-width: 440px !important;
  background: #0f131f !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(99, 102, 241, 0.3) !important;
}
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.auth-tab-btn {
  flex: 1;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}
.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.2));
  color: #ffffff;
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0 16px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.auth-divider span {
  padding: 0 12px;
}
.google-auth-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.google-auth-btn:hover {
  background: #f8fafc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}
.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #f472b6;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Auth gate: until signed in, only the login/signup screen is shown. */
/* Modals and the toast are nested inside .app-shell, so hide its other children rather than the shell itself. */
body.auth-gate .app-shell > :not(.app-modal-backdrop):not(.toast) { display: none; }
body.auth-gate #closeAuthModalBtn { display: none; }
.auth-divider[hidden] { display: none; }
body.auth-gate #authModal { background: radial-gradient(ellipse at top, rgba(99,102,241,0.18), transparent 60%), #04070d; }

/* Link back to the landing page, shown only on the full-page sign-in screen. */
.auth-back-link {
  display: none;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.auth-back-link:hover { color: var(--text-main); }
body.auth-gate .auth-back-link { display: inline-block; }
