:root {
  color-scheme: dark;
  --bg: #0b0f12;
  --surface: #141a1f;
  --line: #2a343c;
  --text: #f4f7f8;
  --muted: #9eabb4;
  --green: #43c486;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; }

.auth-layout {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 24px 18px 40px;
}

.auth-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: 32px; }
.intro, .alternate, .footer-copy { color: var(--muted); line-height: 1.6; }
.intro { margin: 12px 0 22px; }

form { display: grid; gap: 8px; }
label { margin-top: 8px; font-size: 13px; font-weight: 700; }

input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.terms-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 44px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.terms-consent input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.terms-consent a {
  color: var(--text);
  font-weight: 750;
}

button {
  min-height: 44px;
  margin-top: 14px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #07140e;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.message { min-height: 22px; margin: 16px 0 0; color: #ffc0bb; }
.alternate { margin: 16px 0 0; font-size: 14px; }
.footer-copy { margin-top: 26px; font-size: 12px; }

@media (min-width: 640px) {
  .auth-layout { padding-top: 42px; }
  .auth-panel { padding: 32px; }
}
