:root {
  color-scheme: dark;
  --acid: #cfff2f;
  --acid-soft: #9ee72b;
  --ink: #071009;
  --glass: rgba(10, 24, 13, 0.62);
  --line: rgba(215, 255, 170, 0.25);
  --muted: rgba(234, 245, 226, 0.62);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: #f5f8ef;
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.access-shell {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  background-color: #06120e;
  background-image: url("/assets/wane-hero-v3.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.grain {
  position: absolute;
  inset: -40%;
  z-index: 8;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
  transform: rotate(7deg);
}

.brand-lockup {
  position: absolute;
  top: clamp(16px, 2.4vw, 34px);
  left: clamp(26px, 4.7vw, 72px);
  z-index: 12;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #090c09;
}

.brand-name {
  font-family: "Italiana", Georgia, serif;
  font-size: clamp(76px, 7.7vw, 116px);
  font-weight: 400;
  letter-spacing: -0.092em;
  line-height: 0.78;
  transform: scaleX(1.04);
  transform-origin: left center;
}

.brand-kind {
  margin-left: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.brand-pixels {
  align-self: flex-start;
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 4px;
  margin-top: 0;
}

.brand-pixels i { width: 10px; height: 10px; background: #090c09; }
.brand-pixels i:last-child { grid-column: 2; }

.access-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 15;
  width: min(430px, calc(100vw - 48px));
  padding: 28px;
  border: 1px solid rgba(227, 255, 204, 0.28);
  background: rgba(3, 17, 12, 0.86);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(22px) saturate(1.2);
  transform: translate(-50%, -50%);
}

.card-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(231, 245, 221, 0.56);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-signal span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 13px var(--acid);
}

.access-card h1 {
  margin: 18px 0 8px;
  font-family: "Italiana", Georgia, serif;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.access-card > p { margin: 0 0 27px; color: var(--muted); font-size: 14px; }

label {
  display: block;
  margin-bottom: 8px;
  color: rgba(235, 245, 229, 0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.password-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }

input {
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(221, 255, 184, 0.3);
  border-right: 0;
  border-radius: 0;
  outline: none;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  letter-spacing: 0.08em;
}

input:focus { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }

button {
  height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  border: 0;
  background: var(--acid);
  color: #0a1009;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: #dcff63; }
button:disabled { cursor: wait; opacity: 0.65; }
button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.form-status { min-height: 18px; margin-top: 10px; color: #ffc0a8; font-size: 12px; }
.form-status.ok { color: var(--acid); }

footer {
  position: absolute;
  left: clamp(26px, 5vw, 76px);
  right: clamp(26px, 5vw, 76px);
  bottom: 26px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(236, 246, 230, 0.48);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.footer-line { height: 1px; flex: 1; background: rgba(224, 255, 198, 0.2); }

.footer-ca {
  position: absolute;
  left: 50%;
  color: rgba(245, 251, 239, 0.8);
  letter-spacing: 0.16em;
  transform: translateX(-50%);
}

.x-link {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(224, 255, 198, 0.26);
  color: rgba(245, 251, 239, 0.86);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.x-link:hover {
  border-color: var(--acid);
  background: rgba(207, 255, 47, 0.1);
  color: var(--acid);
}

.x-link svg { width: 12px; fill: currentColor; }

@media (max-width: 760px) {
  .access-shell { background-position: 46% center; }
  .brand-name { font-size: 72px; }
  .brand-kind { display: none; }
  .access-card { width: calc(100vw - 40px); padding: 24px; }
  footer { left: 20px; right: 20px; }
}

@media (max-width: 460px) {
  .access-card h1 { font-size: 40px; }
  .password-row { grid-template-columns: 1fr; gap: 9px; }
  input { border-right: 1px solid rgba(221, 255, 184, 0.3); }
  button { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
