:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #16181d;
  --muted: #5d6573;
  --border: #dde1e7;
  --accent: #2f5bd3;
  --accent-text: #ffffff;
  --accent-soft: #e6ecfb;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #1a7f4b;
  --warn: #9a6700;
  --warn-soft: #fff4d6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --surface-2: #1f232c;
    --text: #e7e9ee;
    --muted: #9aa2b1;
    --border: #2b303b;
    --accent: #7c9cf5;
    --accent-text: #0f1115;
    --accent-soft: #1e2840;
    --danger: #f97066;
    --danger-soft: #3a1d1b;
    --ok: #4ade80;
    --warn: #f5c451;
    --warn-soft: #3a2f12;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

a { color: var(--accent); }

h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 15px; margin: 24px 0 8px; }

.muted { color: var(--muted); margin: 0 0 20px; }

/* Hosted sign-in pages */

body.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  margin-bottom: 24px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #7f56d9);
}

form { display: grid; gap: 14px; }

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
}

input[type=email], input[type=password], input[type=text], input:not([type]), select {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  width: 100%;
}

input:focus-visible, select:focus-visible, button:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button, .button {
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.secondary, .button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

button:disabled { opacity: .55; cursor: default; }

.alert {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 16px;
  font-size: 14px;
}

.foot { margin: 18px 0 0; font-size: 14px; }
.actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.project-list { padding-left: 18px; margin: 0; }
.project-list li { margin: 4px 0; }
