/* Memoria login and consent cards: same tokens as the graph page (engine/build_site.py). */
:root {
  color-scheme: dark;
  --bg: #08111d;
  --surface: rgba(13, 26, 43, .94);
  --surface-2: #0f2136;
  --field: #091726;
  --line: rgba(140, 186, 226, .18);
  --line-strong: rgba(140, 186, 226, .34);
  --text: #e8f2fc;
  --muted: #8ea7be;
  --accent: #63e6be;
  --accent-ink: #062019;
  --focus: #74c0fc;
  --danger: #ff8787;
  --warn: #ffd43b;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: var(--bg); }
body {
  color: var(--text);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.stage {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 32px 16px;
  background: radial-gradient(ellipse at 50% 40%, #10283f 0, #0a1828 50%, #060d17 100%);
}

.card {
  width: min(400px, 100%);
  padding: 28px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
}

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b2f2dd 0, var(--accent) 45%, #2f9e7c 100%);
  box-shadow: 0 0 0 4px rgba(99, 230, 190, .14), 0 0 18px rgba(99, 230, 190, .35);
}
.word { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }

h1 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; letter-spacing: -.015em; }
.lead { margin: 0 0 20px; color: var(--muted); }
.lead strong { color: var(--text); font-weight: 600; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }

.form { display: flex; flex-direction: column; }
label { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
input[type="email"], input[type="password"] {
  width: 100%; min-height: 42px; margin-bottom: 16px; padding: 9px 12px;
  background: var(--field); border: 1px solid var(--line-strong); border-radius: 10px; outline: none;
}
input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(116, 192, 252, .18); }

button { cursor: pointer; border-radius: 10px; min-height: 42px; padding: 9px 16px; font-weight: 600; }
.primary { color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); }
.primary:hover { background: #7ff0cd; }
.secondary { background: rgba(116, 192, 252, .08); border: 1px solid var(--line-strong); }
.secondary:hover { background: rgba(116, 192, 252, .16); }
.form .primary { margin-top: 4px; }

.alert {
  margin: 0 0 18px; padding: 10px 12px; font-size: 14px;
  color: #ffd8d8; background: rgba(255, 135, 135, .1); border: 1px solid rgba(255, 135, 135, .35); border-radius: 10px;
}
.alert.subtle { color: #fff3bf; background: rgba(255, 212, 59, .08); border-color: rgba(255, 212, 59, .3); }

.facts { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; font-size: 14px; }
.facts li + li { border-top: 1px solid var(--line); }
.facts span { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.scope-title { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.scopes { margin: 0 0 20px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.scopes li + li { margin-top: 2px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch { margin-top: 14px; text-align: center; }
.link { min-height: 0; padding: 4px; color: var(--muted); background: none; border: 0; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }

.foot { margin: 0; color: #6b8499; font-size: 12px; }
.foot strong { color: var(--muted); font-weight: 600; }

@media (max-width: 420px) {
  .card { padding: 22px 18px 18px; border-radius: 14px; }
  .actions { grid-template-columns: 1fr; }
  .actions .primary { order: -1; }
}
