/* Hand-written, no build step. CLAUDE.md section 2: pnpm's only job would be asset
   tooling, and this stylesheet does not need any. */

:root {
  --bg: #10131a;
  --panel: #171b24;
  --line: #262c38;
  --text: #e8ebf0;
  --muted: #98a1b3;
  --accent: #4f8cff;
  --danger: #ff6b6b;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.topbar nav { display: flex; align-items: center; gap: 1rem; }
.who { color: var(--muted); font-size: 0.9rem; }

main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

h1 { margin-top: 0; font-size: 1.4rem; }

.stack { display: flex; flex-direction: column; gap: 0.35rem; }
.stack label { margin-top: 0.75rem; font-size: 0.85rem; color: var(--muted); }

input[type="email"],
input[type="password"],
input[type="text"] {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1017;
  color: var(--text);
  font-size: 1rem;
}

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

button {
  margin-top: 1.1rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }

.linkish {
  margin: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: underline;
}

.error {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--danger);
  border-radius: 8px;
  color: var(--danger);
  background: rgba(255, 107, 107, 0.08);
}

.muted { color: var(--muted); font-size: 0.9rem; }
.hint { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.8rem; }

.leagues { list-style: none; margin: 0; padding: 0; }

.leagues li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.leagues li:last-child { border-bottom: 0; }
.league-name { font-weight: 600; }

.role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.role-owner { color: var(--accent); }

footer {
  padding: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

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