:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: #0b0b0c;
  color: rgba(247, 244, 239, 0.9);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
}
.gate { width: min(100%, 360px); text-align: center; }
h1 {
  margin: 0 0 36px;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.65;
}
.form { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
input {
  appearance: none;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(247, 244, 239, 0.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(247, 244, 239, 0.92);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-align: center;
}
input::placeholder { color: rgba(232, 226, 216, 0.34); letter-spacing: 0.12em; }
input:focus { outline: none; border-color: rgba(247, 244, 239, 0.34); }
button {
  appearance: none;
  height: 48px;
  border: 1px solid rgba(247, 244, 239, 0.22);
  border-radius: 999px;
  background: transparent;
  color: #d8d0c4;
  font-size: 15px;
  letter-spacing: 0.22em;
}
button:active { transform: translateY(0.5px); }
button.is-wait { opacity: 0.55; }
.err {
  margin: 4px 0 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(232, 200, 196, 0.72);
}
