/* ============================================================
   page-shell.css — Shared layout for all CoinWerx standalone
   form pages (login, signup, reset-password, approve, etc.)
   Include AFTER page-specific :root variable definitions.
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Page body: full-height flex column so footer sticks to bottom ── */
html {
  height: 100%;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg, #0a1628) 0%, #0f1f2f 100%);
  color: var(--text, #e8eaf0);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* top padding accounts for fixed topbar height (48px) */
  padding-top: 48px;
}

/* ── Top Bar ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border, #1e3050);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 200;
}
.topbar-logo img { height: 28px; width: auto; display: block; }
.topbar-home {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted, #8aa4c0); text-decoration: none;
  width: 36px; height: 36px; border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.topbar-home:hover { background: rgba(255,184,48,0.1); color: var(--gold, #ffb830); }
.topbar-home svg { width: 20px; height: 20px; }

/* ── Main content area: grows to fill space, centers card ── */
.page-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
}

/* ── Footer ── */
.page-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted, #8aa4c0);
  padding: 0.9rem 1rem 1.1rem;
  border-top: 1px solid var(--border, #1e3050);
  background: rgba(10,22,40,0.6);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.page-footer .footer-copy {
  display: block;
}
.page-footer .footer-links {
  display: block;
}
.page-footer a {
  color: var(--muted, #8aa4c0);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,184,48,0.2);
  transition: color 0.15s, border-color 0.15s;
}
.page-footer a:hover {
  color: var(--gold, #ffb830);
  border-bottom-color: rgba(255,184,48,0.6);
}
.page-footer .sep {
  margin: 0 0.5rem;
  opacity: 0.4;
}
