/* Shared styles for the sign-in, sign-up, get-access, class-code and account pages. */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #f8fafc;
  line-height: 1.5;
}

header.site {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
header.site img { width: 28px; height: 28px; }
header.site .name { font-weight: 700; }
header.site .spacer { margin-left: auto; }

main.card {
  max-width: 520px;
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
main.card.wide { max-width: 720px; }

h1 { font-size: 1.4rem; margin: 0 0 12px; }
h2 { font-size: 1.1rem; margin: 20px 0 8px; }
.muted { color: var(--muted); }
.hidden { display: none; }

a.button, button.primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
a.button:hover, button.primary:hover { background: var(--blue-dark); }
button.link {
  background: none;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  text-decoration: underline;
}

input[type="text"], input:not([type]) {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  margin: 6px 0 12px;
}

p.error { color: #b91c1c; }
p.note { color: var(--muted); font-size: 0.9rem; }

ul.options, ul.classes, ul.members { list-style: none; padding: 0; margin: 0; }
ul.options li, ul.classes li, ul.members li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 10px 0;
}
ul.options li a { text-decoration: none; color: inherit; display: block; }
.price { font-weight: 700; }
code.code {
  display: inline-block;
  font-size: 1.2rem;
  background: #eff6ff;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 6px 12px;
  margin: 6px 0;
  letter-spacing: 1px;
}
