/* Shared styles for Atium Auth's pages. The palette mirrors atiumai.com (:root / dark). */

:root {
  color-scheme: light dark;
  --brand: #aa4c23;
  --background: #f2f0e9;
  --surface: #fcfcfb;
  --foreground: #1c1c1a;
  --muted: #6f6a60;
  --border: #e4e1da;
  --input-bg: #fcfcfb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #e08a5c;
    --background: #131315;
    --surface: #1c1c1e;
    --foreground: #ececea;
    --muted: #9b978e;
    --border: #33333a;
    --input-bg: #131315;
  }
}
html { height: 100%; }
body { min-height: 100%; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0; padding: 16px; box-sizing: border-box;
  background: var(--background); color: var(--foreground);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px; color: var(--foreground);
}
.brand svg { width: 30px; height: 30px; }
.wordmark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem; line-height: 1; letter-spacing: -0.02em;
}
.card {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 32px;
  box-sizing: border-box;
}
h1 {
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: 1.45rem; letter-spacing: -0.01em; margin: 0 0 6px;
}
.muted { color: var(--muted); font-size: 0.875rem; margin: 0 0 20px; }
label { display: block; font-size: 0.8rem; font-weight: 500; margin: 12px 0 4px; }
input {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem;
  font-family: inherit; background: var(--input-bg); color: var(--foreground);
}
input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
button {
  width: 100%; margin-top: 16px; padding: 11px; border: 0; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600; font-family: inherit; cursor: pointer;
}
.primary { background: var(--brand); color: #fff; }
.primary:hover { opacity: 0.92; }
.secondary {
  background: transparent; color: var(--foreground);
  border: 1px solid var(--border); margin-top: 8px;
}
.secondary:hover { background: var(--background); }
.error { color: #b3261e; font-size: 0.85rem; margin-top: 12px; min-height: 1em; }
@media (prefers-color-scheme: dark) { .error { color: #ff8a80; } }
.scopes { margin: 4px 0; }
.scope {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.9rem; padding: 6px 2px; color: var(--foreground);
}
.scope::before {
  content: ""; flex: 0 0 auto; width: 15px; height: 15px;
  background-color: var(--brand);
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
          mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.hidden { display: none; }
.divider { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 14px 0 0; }
.mode-switch { text-align: center; font-size: 0.85rem; margin: 16px 0 0; }
.mode-switch a { color: var(--brand); font-weight: 500; text-decoration: none; }
.mode-switch a:hover { text-decoration: underline; }

/* Account page */
.card.wide { max-width: 440px; }
.section { margin-top: 22px; }
.section h2 {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); margin: 0 0 8px;
}
.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 8px; }
.rows li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; font-size: 0.9rem;
}
.rows li + li { border-top: 1px solid var(--border); }
.rows .detail { color: var(--muted); font-size: 0.8rem; text-align: right; }
.pill {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--brand); color: var(--brand); font-size: 0.7rem; font-weight: 600;
  vertical-align: 1px;
}
.empty { color: var(--muted); font-size: 0.85rem; margin: 0; }
.link-button {
  width: auto; margin: 12px 0 0; padding: 0; border: 0; background: none;
  color: var(--brand); font-size: 0.85rem; font-weight: 500;
}
.link-button:hover { text-decoration: underline; }
