:root {
  --bg: #161a1f;
  --fg: #e9eef5;
  --muted: #8b95a3;
  --panel: #20262e;
  --green: #2f6f4f;
  --green-hover: #3a8a63;
  --red: #b3483f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.5 -apple-system, system-ui, sans-serif;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}

h1 { margin: 0 0 4px; font-size: 26px; }

.muted { color: var(--muted); }

button {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button.primary { background: var(--green); color: #fff; }
button.primary:hover { background: var(--green-hover); }
button.primary:disabled { background: var(--muted); cursor: default; }

button.secondary { background: #2a313b; color: var(--fg); }
button.secondary:hover { background: #343c48; }

input {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #343c48;
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  text-align: center;
  letter-spacing: 2px;
}

input:focus { outline: 2px solid var(--green); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #343c48; }

.message {
  margin: 16px 0 0;
  padding: 10px;
  border-radius: 8px;
  font-size: 15px;
}
.message.error { background: rgba(179, 72, 63, 0.18); color: #ffb4ad; }
