/* dos-rda — UI v2
   DOS Cloud shared identity (see ../../../docs/design-system.md): centered
   wordmark + short red brand line + Digital Governance footer. Editorial-clean
   with a restrained neo-brutalist touch. RDA's functional accent is indigo;
   the brand line stays DOS red. */

:root {
  --bg: #f2f2f5;
  --surface: #ffffff;
  --ink: #141416;
  --ink-soft: #4a4a52;
  --ink-muted: #8b8b95;
  --line: #e7e7ee;
  --line-strong: #d7d7e0;

  --brand-line: #c9143f;      /* DOS Design red — shared Cloud brand mark */

  --accent: #5b46d9;          /* RDA indigo (functional accent) */
  --accent-ink: #4736b0;
  --accent-soft: #ece9fb;

  --dark: #141416;            /* primary button */

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 20, 40, .04), 0 10px 26px rgba(20, 20, 40, .055);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--ink-muted); }

/* ---------- Header / brand ---------- */

.site-header {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.6rem 1.25rem 0;
  text-align: center;
}

/* Canonical Cloud brand mark: centered wordmark + short red underline,
   shared with every DOS Cloud app. */
.brand {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-word { font-size: 1.6rem; font-weight: 900; letter-spacing: 1px; }
.brand-word span { font-weight: 400; color: var(--ink-soft); }
.brand-line { height: 3px; width: 56px; background: var(--brand-line); margin: .5rem auto 0; }

.site-title {
  margin: 1.4rem 0 .3rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.site-sub {
  margin: 0 0 1.4rem;
  color: var(--ink-muted);
  font-size: .95rem;
}

/* ---------- Main / cards ---------- */

.app-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.25rem;
}

.app-main > section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.7rem;
}

.app-main > section > h1 {
  margin: 0 0 .8rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.auth-login { text-align: center; }

/* ---------- Buttons / login actions ---------- */

.login-actions {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  max-width: 22rem;
  margin: 1.4rem auto 0;
}

.btn-primary,
.btn-ghost {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform .12s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.btn-primary {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}
.btn-primary:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-ghost {
  color: var(--accent-ink);
  background: var(--surface);
  border: 1px solid var(--accent);
}
.btn-ghost:hover { text-decoration: none; background: var(--accent-soft); }

.logout-form { margin-top: 1.4rem; }
.logout-form button { font: inherit; }

/* ---------- Footer ---------- */

.site-footer {
  max-width: 880px;
  margin: 2.4rem auto 1.6rem;
  padding: 0 1.25rem;
  text-align: center;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: .8rem;
  color: var(--ink-muted);
}
.site-footer strong { color: var(--ink-soft); font-weight: 600; }
