:root {
  color-scheme: dark;
  --ink: #edf7ff;
  --muted: #b5c7d4;
  --signal: #53e6c2;
  --warning: #9fb9ff;
  --panel: rgba(5, 12, 24, 0.64);
  --panel-edge: rgba(83, 230, 194, 0.34);
  --denied: #ff3f5f;
  --shadow: rgba(0, 5, 14, 0.7);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 42%, rgba(47, 188, 172, 0.12), transparent 28rem),
    linear-gradient(90deg, rgba(3, 8, 20, 0.78), rgba(6, 15, 30, 0.42) 48%, rgba(3, 8, 20, 0.08)),
    url("/images/darkmail-background.png") center / cover fixed;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 5rem);
}

.hero {
  width: min(720px, 100%);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--panel), rgba(3, 13, 28, 0.52));
  box-shadow: 0 28px 80px var(--shadow);
  backdrop-filter: blur(5px);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--signal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.subtitle {
  max-width: 620px;
  margin: 1.25rem 0 0;
  color: var(--warning);
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
}

.body-copy {
  max-width: 58ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
}

.body-footer {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: #789bc8;
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  line-height: 1.5;
}

.access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  width: min(420px, 100%);
  margin-top: 2rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.access-panel label {
  color: var(--signal);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-panel input {
  width: 100%;
  min-height: 2.65rem;
  border: 1px solid rgba(83, 230, 194, 0.36);
  border-radius: 4px;
  padding: 0.65rem 0.8rem;
  color: var(--ink);
  background: rgba(0, 6, 16, 0.72);
  outline: none;
  box-shadow: inset 0 0 18px rgba(83, 230, 194, 0.06);
}

.access-panel input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 2px rgba(83, 230, 194, 0.16), inset 0 0 18px rgba(83, 230, 194, 0.08);
}

.access-panel button {
  width: fit-content;
  min-height: 2.6rem;
  border: 1px solid rgba(83, 230, 194, 0.48);
  border-radius: 4px;
  margin-top: 0.35rem;
  padding: 0.65rem 1.05rem;
  color: #04120f;
  background: var(--signal);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.access-panel button:hover,
.access-panel button:focus-visible {
  background: #7fffe4;
}

.access-result {
  min-height: 1.35rem;
  margin: 0.35rem 0 0;
  color: var(--denied);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  body {
    background-attachment: scroll;
  }

  .page-shell {
    place-items: end center;
  }
}
