/* Omega Overlords — account flow styles
   Pared-down sibling of deploy/website/site/styles.css. Same palette/feel,
   but only the bits we need for the four account pages. */

:root {
  --bg-0: #0a0a0b;
  --bg-1: #111114;
  --bg-card: #1c1c22;
  --border: #2a2a32;
  --border-strong: #3a3a45;

  --text: #e7e7ea;
  --text-muted: #9b9ba5;
  --text-dim: #6f6f7a;

  --accent: #dc143c;
  --accent-hover: #ff2a52;
  --gold: #d4a836;

  --ok: #36c476;
  --warn: #d4a836;
  --err: #c43636;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.35);

  --font-display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(220, 20, 60, 0.10), transparent 70%),
    radial-gradient(800px 500px at 100% 100%, rgba(212, 168, 54, 0.06), transparent 70%),
    var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 0.9em; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.shell.wide { max-width: 760px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent), #8a0d24);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(220, 20, 60, 0.35);
}

.brand a { color: var(--text); }
.brand a:hover { color: var(--accent); text-decoration: none; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.card + .card { margin-top: 20px; }

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); font-size: 0.9rem; }

.kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  font-size: 0.95rem;
}

.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; word-break: break-word; }

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input[type="email"],
input[type="text"],
input[type="password"] {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-1);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  outline: none;
  transition: border-color 120ms ease;
}

input:focus {
  border-color: var(--accent);
}

.field { margin-bottom: 16px; }

.preview {
  margin-top: -8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.preview strong { color: var(--gold); }

.btn {
  display: inline-block;
  padding: 11px 18px;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.btn:hover:not([disabled]) { background: var(--accent-hover); }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn.ghost:hover { background: rgba(255, 255, 255, 0.04); }

.btn.full { display: block; width: 100%; }

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.row > .grow { flex: 1; }

.alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin: 0 0 16px;
  border: 1px solid var(--border-strong);
  background: var(--bg-1);
}

.alert.ok { border-color: rgba(54, 196, 118, 0.45); color: var(--ok); }
.alert.warn { border-color: rgba(212, 168, 54, 0.45); color: var(--warn); }
.alert.err { border-color: rgba(196, 54, 54, 0.45); color: var(--err); }
.alert.hidden { display: none; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  background: var(--bg-1);
}

.badge.ok { color: var(--ok); border-color: rgba(54, 196, 118, 0.45); }
.badge.warn { color: var(--warn); border-color: rgba(212, 168, 54, 0.45); }

.avatar-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.avatar-list li {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.9rem;
}

.avatar-list .empty {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-style: italic;
  padding: 12px 0;
}

.foot {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}

@keyframes spin { to { transform: rotate(360deg); } }
