/* Access gate — deliberately separate from the site stylesheet */
:root {
  --bg: #0d1329;
  --panel: #141c3a;
  --line: rgba(240, 234, 222, 0.16);
  --text: #f0eadf;
  --muted: #b9bccb;
  --accent: #e3a06a;
  --error: #ffb4a8;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { width: 100%; max-width: 400px; }
.gate {
  width: 100%;
  max-width: 400px;
  padding: 40px 32px 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  position: relative;
}
.gate::before {
  content: "";
  position: absolute;
  top: -1px; left: 32px;
  width: 48px; height: 2px;
  background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .gate { animation: gate-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .gate.shake { animation: shake 0.4s ease; }
}
@keyframes gate-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%,100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
label {
  display: block;
  margin-bottom: 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.field { position: relative; }
input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  background: transparent;
  border: 1.5px solid rgba(240, 234, 222, 0.4);
  border-radius: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: border-color 0.2s;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227, 160, 106, 0.25); }
input[aria-invalid="true"] { border-color: var(--error); }
button {
  width: 100%;
  height: 54px;
  margin-top: 14px;
  border: 0;
  background: var(--accent);
  color: #1a1206;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover { background: #efb584; }
button:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.error {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--error);
}
