/* Landing, login and users pages. Builds on common.css (dark ground, Inter, blue accent). */
body { min-height: 100%; display: flex; flex-direction: column; }
a { color: var(--accent); text-underline-offset: 3px; }
.btn, button {
  font: inherit; font-weight: 500; height: 40px; padding: 0 18px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--raised); color: var(--text); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap;
}
.btn:hover, button:hover { background: #363636; }
.btn.primary, button.primary { background: var(--text); color: #000; }
.btn.primary:hover, button.primary:hover { background: #e2e2e2; }
.btn.ghost { background: transparent; border: 1px solid var(--control); }
.btn.ghost:hover { background: #1c1c1c; }
button.danger { background: var(--pill-negative-bg); color: var(--pill-negative-ink); height: 32px; padding: 0 12px; }
button.danger:hover { background: #3a2028; }
button.small { height: 32px; padding: 0 12px; }
.btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, select { font: inherit; color: var(--text); height: 40px; background: var(--ground); border: 1px solid var(--control); border-radius: 6px; padding: 0 12px; width: 100%; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--rule); }
.bar img { height: 40px; width: auto; display: block; }
.bar nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.who { color: var(--muted); font-size: 14px; }

/* landing */
.hero { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 20px; padding: 56px 24px; }
.hero .eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-family: "Barlow Condensed", "Inter", sans-serif; font-weight: 700; font-size: clamp(44px, 9vw, 96px); line-height: .95; letter-spacing: -.01em; }
.hero p { color: var(--muted); max-width: 46ch; font-size: 18px; line-height: 1.5; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.actions .btn { height: 48px; padding: 0 26px; font-size: 16px; }
.sponsors { padding: 24px; border-top: 1px solid var(--rule); display: flex; justify-content: center; }
.sponsors img { max-width: min(100%, 900px); height: auto; display: block; background: #fff; border-radius: 6px; padding: 10px 16px; }

/* login + users */
.card-wrap { flex: 1; display: grid; place-items: center; padding: 32px 16px; }
.card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 28px; display: grid; gap: 16px; }
.card h1 { font-size: 24px; letter-spacing: -.01em; }
.card .lead { color: var(--muted); font-size: 15px; margin-top: -8px; }
.card label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.card .submit { height: 44px; width: 100%; }
.alert { border-radius: 6px; padding: 10px 12px; font-size: 14px; background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.back { text-align: center; font-size: 14px; }

.page { width: 100%; max-width: 860px; margin: 0 auto; padding: 32px 16px 64px; display: grid; gap: 28px; }
.page h1 { font-size: 26px; letter-spacing: -.01em; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 20px; display: grid; gap: 14px; }
.panel h2 { font-size: 17px; }
.row-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.row-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.ulist { list-style: none; display: grid; }
.ulist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.ulist li:first-child { border-top: 0; }
.ulist .name { font-weight: 600; flex: 1; min-width: 8em; }
.pill { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--raised); color: var(--muted); }
.pill.admin { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.msg { min-height: 1.4em; font-size: 14px; }
.msg.err { color: var(--pill-negative-ink); } .msg.ok { color: var(--pill-positive-ink); }
