:root {
  --bg: #F6F4EF;
  --text: #0A0A0A;
  --muted: #6B6B6B;
  --rule: #E8E5DD;
  --error: #b00020;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

#gate-form {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prompt {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.01em;
}

input[type="password"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input[type="password"]:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.04);
}

button {
  padding: 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  transition: opacity 120ms ease;
}

button:hover { opacity: 0.85; }
button:disabled { opacity: 0.5; cursor: default; }

.error {
  margin: 0;
  font-size: 0.85rem;
  color: var(--error);
  text-align: center;
}
