:root {
  --text: #f4f7e7;
  --muted: rgba(244, 247, 231, 0.62);
  --green: #c6f006;
  --line: rgba(244, 247, 231, 0.2);
  --dark: #080b08;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--dark);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bg-video,
.shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-video {
  object-fit: cover;
  transform: scale(1.02);
}

.shade {
  background:
    radial-gradient(circle at 50% 48%, rgba(198, 240, 6, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(8, 11, 8, 0.2), rgba(8, 11, 8, 0.72)),
    rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
}

header {
  position: fixed;
  top: 24px;
  left: 28px;
  right: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header a,
header span {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

header a {
  font-size: 18px;
}

header span {
  padding: 9px 12px;
  border: 1px solid rgba(198, 240, 6, 0.34);
  border-radius: 999px;
  color: var(--green);
  background: rgba(8, 11, 8, 0.26);
  font: 800 12px "Courier New", ui-monospace, monospace;
}

main {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.gate {
  width: min(440px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(5, 8, 6, 0.46);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.gate p,
.gate label,
.gate small {
  color: var(--muted);
  font: 800 11px "Courier New", ui-monospace, monospace;
  text-transform: uppercase;
}

.gate p {
  margin: 0 0 14px;
  color: var(--green);
}

h1 {
  margin: 0 0 26px;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 0.95;
  letter-spacing: 0;
}

form {
  display: grid;
  gap: 10px;
}

.input-row {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(244, 247, 231, 0.18);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
}

input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 18px;
}

input::placeholder {
  color: rgba(244, 247, 231, 0.35);
}

button {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  color: #0b1004;
  background: var(--green);
  cursor: pointer;
  font-weight: 950;
}

.gate small {
  display: block;
  margin-top: 18px;
  line-height: 1.6;
}

.gate.denied {
  animation: shake 0.28s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

@media (max-width: 560px) {
  body {
    overflow: auto;
  }

  header {
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .input-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
