/* Neutral login styling — deliberately reveals nothing about the app. */
:root { color-scheme: light dark; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100dvh;
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f3f4f6;
  color: #111827;
}
@media (prefers-color-scheme: dark) {
  html, body { background: #0b0d10; color: #e5e7eb; }
}
.gate {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 320px;
}
.gate-form input,
.gate-form button {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: inherit;
  font-size: 1.1rem;
}
@media (prefers-color-scheme: dark) {
  .gate-form input { background: #15181d; border-color: #2a2f37; }
}
.gate-form button {
  border: none;
  background: #374151;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.gate-form button:disabled { opacity: .6; }
.error { color: #dc2626; text-align: center; margin: 2px 0 0; }

/* Returning-visitor "remember me": the email shows as a button and the input
   is hidden until the button (a label toggling a hidden checkbox) is clicked.
   With no remembered email the button is hidden and the plain input shows. */
.email-btn { display: none; }
.gate-form.remembered .email-input { display: none; }
.gate-form.remembered .email-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: inherit;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gate-form.remembered .edit-toggle:checked ~ .email-btn { display: none; }
.gate-form.remembered .edit-toggle:checked ~ .email-input { display: block; }
@media (prefers-color-scheme: dark) {
  .gate-form.remembered .email-btn { background: #15181d; border-color: #2a2f37; }
}
