/* Login page (packet formal_login): the /app tokens (src/app/app.css), standalone so the page needs no signed-in asset. */
.cx-app {
  --bg: #f4f5f1; --surface: #ffffff; --surface-2: #f9faf7; --ink: #17201d; --muted: #5d6763; --faint: #8b938f;
  --line: #e2e5df; --accent: #0f766e; --accent-ink: #ffffff; --accent-soft: #e3f2ef; --energy: #e39b12;
  --refuse: #b93b34; --refuse-soft: #fcebea;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 4px 16px rgba(20, 30, 25, .06);
  --radius: 18px;
  --font: "Public Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cx-app {
    --bg: #0f1413; --surface: #172020; --surface-2: #1c2625; --ink: #e8eeeb; --muted: #a3aeaa; --faint: #76807c;
    --line: #2a3533; --accent: #2bb3a3; --accent-ink: #06201c; --accent-soft: #143331; --energy: #f0b23a;
    --refuse: #ec6d65; --refuse-soft: #3a1917; --shadow: none; color-scheme: dark;
  }
}
html, body { margin: 0; }
body { background: #f4f5f1; }
@media (prefers-color-scheme: dark) { body { background: #0f1413; } }
.cx-app { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
.cx-app *, .cx-app *::before, .cx-app *::after { box-sizing: border-box; }
.cx-topbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cx-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.01em; }
.cx-brand i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--energy)); display: inline-block; }
.cx-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; }
.cx-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.cx-login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 8px; }
.cx-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.cx-login-card h1 { margin: 0; font-size: 26px; line-height: 1.2; }
.cx-sub { margin: 0 0 8px; color: var(--muted); }
.cx-login-card label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.cx-login-card input { font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; width: 100%; }
.cx-login-card input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cx-login-error { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--refuse-soft); color: var(--refuse); font-size: 14px; }
.cx-login-error[hidden] { display: none; }
.cx-btn { margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px;
  padding: 11px 18px; font: inherit; font-weight: 700; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.cx-btn:disabled { opacity: .55; cursor: not-allowed; }
.cx-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* RateCosmo login: the mark in the bar, the two doors */
.cx-login .cx-brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.cx-login .rc-mark { color: currentColor; }
.cx-login-doors { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2, #f2f4f1); border: 1px solid var(--line, #e2e5df); margin-bottom: 8px; }
.cx-login-doors a { padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted, #5d6763); text-decoration: none; }
.cx-login-doors a[aria-selected="true"] { background: var(--surface, #fff); color: var(--ink, #17201d); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
