:root {
  --navy: #0e1a2b;
  --teal: #35d0ba;
  --teal-dark: #1f9e8c;
  --ink: #1b2533;
  --muted: #5b6676;
  --line: #dfe4ea;
  --bg: #f5f7fa;
  --error: #b42318;
  --error-bg: #fdecea;
  --ok-bg: #e7f8f4;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--teal-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 32px; padding-bottom: 48px; min-height: 70vh; }

.topbar { background: var(--navy); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand span { color: var(--teal); font-weight: 500; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a, .topbar .link { color: #fff; text-decoration: none; }

.btn { display: inline-block; background: var(--teal); color: var(--navy); border: 0; border-radius: 8px;
       padding: 11px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: #4fe0cb; }
.btn-small { padding: 6px 14px; }
.btn-full { width: 100%; margin-top: 8px; }
.btn-ghost { background: transparent; color: var(--teal-dark); border: 1px solid var(--teal-dark); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-dark); cursor: pointer; text-decoration: underline; }
form.inline, form.inline-block { display: inline; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; margin-bottom: 20px; }
.card.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.card h1 { margin-top: 0; font-size: 26px; }
.hero { padding: 40px 0; }
.hero h1 { font-size: 36px; margin: 0 0 8px; }

label { display: block; margin: 14px 0 4px; font-weight: 600; }
label input[type=text], label input[type=email], label input[type=password] {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-weight: 400;
  border: 1px solid var(--line); border-radius: 8px; }
input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
label.check input { margin-top: 5px; }
.hint, .muted { color: var(--muted); font-size: 14px; }
.error { color: var(--error); font-size: 14px; margin: 4px 0 0; }
.alt { text-align: center; margin: 14px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.flash { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; background: #eef2f6; }
.flash-success { background: var(--ok-bg); }
.flash-error { background: var(--error-bg); color: var(--error); }

.details { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

.footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 14px; }
.footer a { color: var(--muted); }
