* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  color: #f6f3ee;
  font-family: Outfit, "Segoe UI", sans-serif;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 28%, rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.78) 80%, rgba(0, 0, 0, 0.94) 100%),
    url("/gate/cover.jpg") center 18% / cover no-repeat,
    #07090d;
}

.hero {
  position: fixed;
  z-index: 2;
  top: clamp(1.1rem, 3.2vh, 2.1rem);
  left: clamp(1.2rem, 5vw, 4.2rem);
  max-width: min(20rem, calc(100% - 2.4rem));
}

.logo {
  display: inline-flex;
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 3.3rem);
  letter-spacing: -0.04em;
  line-height: 1;
  gap: 0.02em;
}

.logo span:nth-child(1) { color: #ff5c7a; }
.logo span:nth-child(2) { color: #ffb020; }
.logo span:nth-child(3) { color: #ffe14a; }
.logo span:nth-child(4) { color: #5ee0a0; }
.logo span:nth-child(5) { color: #3ec6ff; }
.logo span:nth-child(8) { color: #ff7ad9; }

.ai {
  color: #fff;
  font-weight: 700;
}

h1 {
  margin: 0.7rem 0 0;
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(3.6rem, 8.4vw, 6.6rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: 0.02em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.mission {
  margin: 0.85rem 0 0;
  max-width: 16rem;
  color: rgba(246, 243, 238, 0.92);
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  font-weight: 300;
  line-height: 1.3;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}

.access {
  position: fixed;
  left: clamp(1.2rem, 5vw, 4.2rem);
  bottom: clamp(1.5rem, 5vh, 3.2rem);
  width: min(18rem, calc(100% - 2.4rem));
}

label {
  display: block;
  color: rgba(246, 243, 238, 0.72);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

input {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.55rem 0 0.45rem;
  border: 0;
  border-bottom: 1px solid rgba(246, 243, 238, 0.55);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 500 1.45rem/1 Outfit, "Segoe UI", sans-serif;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

input:focus {
  outline: none;
  border-bottom-color: #fff;
}

.error {
  min-height: 1.2rem;
  margin: 0.7rem 0 0;
  color: #ffc1bc;
  font-size: 0.92rem;
  font-weight: 300;
}

button {
  margin-top: 0.85rem;
  padding: 0.72rem 1.35rem;
  border: 1px solid rgba(246, 243, 238, 0.72);
  background: transparent;
  color: #fff;
  font: 500 0.72rem/1 Outfit, "Segoe UI", sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.ip {
  position: fixed;
  right: clamp(0.9rem, 2.4vw, 1.5rem);
  bottom: clamp(0.7rem, 2vh, 1.1rem);
  margin: 0;
  color: rgba(246, 243, 238, 0.62);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.ip span:first-child {
  margin-right: 0.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

@media (max-width: 700px) {
  html, body { background-position: center, center top, center; }
  h1 { font-size: clamp(3rem, 16vw, 4.2rem); }
  .access { width: min(100% - 2.4rem, 20rem); }
  .ip { left: clamp(1.2rem, 5vw, 4.2rem); right: auto; }
}
