* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  min-height: 100dvh;
  background: #fff;
  color: #111;
  font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
}

body {
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
}

.gate {
  display: grid;
  gap: 0.75rem;
  width: min(280px, calc(100% - 2rem));
}

.gate h1 {
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
}

.gate-lead {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.gate input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: #111;
}

.gate input:focus {
  outline: 2px solid #111;
  outline-offset: 1px;
}

.gate button {
  padding: 0.7rem 0.8rem;
  border: 1px solid #111;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
}

.gate button:hover { filter: brightness(1.15); }

.gate-error {
  color: #b00020;
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.2em;
}
