:root {
  --bg: #0b0f14;
  --bg-card: #161d28;
  --text: #e6edf3;
  --text-muted: #8b98a5;
  --accent: #4dd0e1;
  --border: #22303f;
  --ok: #3fb950;
  --error: #f85149;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% -20%, #12303a 0%, var(--bg) 60%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 16px 32px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}
.brand span { color: var(--accent); }

h1 {
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.lead { font-size: 1.1rem; color: var(--text-muted); margin: 0 0 32px; }
.small { font-size: 0.85rem; color: var(--text-muted); }

.signup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

label { font-weight: 600; font-size: 0.95rem; }

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 4px 0 12px;
}
.consent input { margin-top: 4px; accent-color: var(--accent); }

button, .button {
  display: inline-block;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .button:hover { filter: brightness(1.1); }

button.link {
  padding: 0;
  font-weight: 400;
  color: var(--accent);
  background: none;
  text-decoration: underline;
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 14px 16px; border-radius: 8px; margin: 0 0 24px; }
.notice-ok { background: rgba(63, 185, 80, 0.12); border: 1px solid var(--ok); }
.notice-error { background: rgba(248, 81, 73, 0.12); border: 1px solid var(--error); }

.inline { display: inline; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }

.footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 24px 16px;
  font-size: 0.85rem;
}
.footer a { color: var(--text-muted); }

.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.15rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 20px; }
.back { display: inline-block; margin-bottom: 24px; font-size: 0.9rem; }
