html, body { margin: 0; height: 100%; background: #000; }
body {
  display: flex; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
form { width: min(440px, 92vw); text-align: center; }
input {
  width: 100%; box-sizing: border-box;
  background: #000; color: #ddd; caret-color: #888;
  border: 1px solid #1c1c1c; border-radius: 10px;
  padding: 14px 10px; font-size: 16px; /* >=16px stops iPhone zooming in */
  text-align: center; outline: none;
  transition: border-color .2s;
}
button {
  margin-top: 12px; width: 100%; box-sizing: border-box;
  background: #111; color: #ccc; border: 1px solid #2a2a2a; border-radius: 10px;
  padding: 13px 16px; font-size: 17px; font-family: inherit; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
button:active { background: #1c1c1c; }
button:disabled { opacity: .4; }
input:focus { border-color: #333; }
input.bad { border-color: #6b1d1d; animation: shake .3s; }
input:disabled { opacity: .4; }
#msg { min-height: 1.2em; margin: 12px 0 0; color: #7a3a3a; font-size: 13px; }
#msg.hint { color: #c9a227; line-height: 1.5; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
