:root {
  color-scheme: dark;
  --booth: #121016;
  --console: #1b1722;
  --line: #302739;
  --chalk: #f6eff9;
  --voice: #d4c8dc;
  --room-tone: #a99ab3;
  --signal: #f077ac;
  --signal-bright: #fa97c1;
  --signal-ink: #281320;
  --danger: #ff9c9e;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 5vw, 64px);
  background: radial-gradient(ellipse at 15% 10%, #211424, transparent 65%), var(--booth);
  color: var(--chalk);
}

.access-shell {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--console);
}

.access-art {
  background:
    linear-gradient(0deg, #25122080, transparent 65%),
    url("/hero.webp") 55% center / cover no-repeat,
    radial-gradient(ellipse at 35% 30%, #52213c, #1a1223 75%);
  border-right: 1px solid var(--line);
}

.access-panel { padding: clamp(24px, 5vw, 48px); }

.access-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .05em;
}

.access-brand small {
  display: block;
  color: var(--room-tone);
  font: 600 9px/1.3 ui-monospace, monospace;
  letter-spacing: .13em;
}

.access-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--signal);
  color: var(--signal-ink);
}

.access-mark svg { width: 20px; height: 20px; }
.access-heading { margin: 40px 0 23px; }
.access-heading h1 { margin: 0; font-size: clamp(22px, 3.5vw, 29px); line-height: 1.25; }
.access-heading p { margin: 11px 0 0; color: var(--room-tone); font-size: 14px; line-height: 1.6; }

#access-form { display: grid; gap: 10px; }
#access-form label { color: var(--voice); font-size: 13px; font-weight: 650; }

#access-form input, #access-form button {
  width: 100%;
  min-height: 44px;
  font: inherit;
  border-radius: 8px;
}

#access-form input {
  padding: 9px 12px;
  background: var(--booth);
  border: 1px solid var(--line);
  color: var(--chalk);
}

#access-form input::placeholder { color: var(--room-tone); font-size: 13px; }
#access-form input[aria-invalid="true"] { border-color: var(--danger); }

#access-form button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 9px 13px;
  border: 1px solid transparent;
  color: var(--signal-ink);
  background: var(--signal);
  cursor: pointer;
  font-weight: 750;
}

#access-form button:hover:not(:disabled) { background: var(--signal-bright); }
#access-form button:disabled { cursor: default; opacity: .72; }
:focus-visible { outline: 2px solid var(--signal-bright); outline-offset: 3px; }
.access-error { margin: 0; color: var(--danger); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }

@media (max-width: 690px) {
  .access-shell { max-width: 430px; grid-template-columns: minmax(0, 1fr); }
  .access-art { height: clamp(105px, 26vw, 160px); border-right: 0; border-bottom: 1px solid var(--line); }
  .access-heading { margin-top: 25px; }
}
