/* Shared visual base for every entry point of the zone (terminal, cabinet,
   and the second pillar later). Served from /shared/base.css, linked BEFORE
   the application stylesheet so an application rule always wins on a tie.

   What lives here: the donor-native palette, the reset, the base typography,
   the top-bar frame, and the look of the sign-in card. What deliberately does
   NOT: where #login-overlay sits. The terminal covers only its chart area
   (the navigation stays visible behind it), the cabinet covers the page --
   that is each application's business, and pretending otherwise would have
   changed the accepted look of the terminal's sign-in screen. */

:root {
  --bg: #2d2d2d;
  --border: #505050;
  --text: #e0e0e0;
  --text-dim: #b0b0b0;
  --text-mute: #888888;
  --accent: #e53935;
  --accent-glow: rgba(229, 57, 53, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.4 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ---- top bar (donor .navbar) ---- */

#topbar {
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0 20px;
  background: var(--bg);
  flex: 0 0 auto;
}

/* The top-left corner is THE door (owner's model, 2026-08-01): on a chart
   host it reads "account" and leads to the cabinet, in the cabinet it reads
   "trading" and leads back. One element, styled once for every host. */
#brand {
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  text-transform: uppercase;
  font-size: 11px;
  margin-right: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  transition: color 0.15s;
}
a#brand:hover { color: #ffffff; }

/* ---- sign-in card (identity.md 7.6) ----
   Native visual, no vendor widget: the redirect flow needs no third-party
   script, which is exactly why the CSP stays script-src 'self'. */

#login-overlay[hidden] { display: none; }

#login-card { text-align: center; }

#login-title {
  color: var(--text-mute);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-bottom: 18px;
}

#login-google {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
}

#login-google:hover {
  border-color: var(--accent);
  color: var(--accent);
}
