:root {
  --ink: #1d1d1f;
  --muted: #86868b;
  --paper: #f5f5f7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --bad: #bf4800;
  --line: rgba(0, 0, 0, 0.08);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.022em;
}
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card {
  width: min(100%, 400px);
  background: #fff;
  border: 0;
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: none;
}
.mark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 17px;
}
h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.003em;
  line-height: 1.1;
}
.muted { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.47; }
form { display: grid; gap: 14px; margin-top: 28px; }
label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
}
button {
  margin-top: 6px;
  height: 44px;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease;
}
button:hover { background: var(--accent-hover); }
.error { margin: 0; color: var(--bad); font-size: 13px; }
