/* meow.io — playful pixelated landing */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0a0a12;
  color: #f4f4f6;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow: hidden;
}

/* Stage holds the looping cat full-bleed. The GIF is already
   low-res (~320 px wide, 12 fps); image-rendering: pixelated +
   the colour filter give the chunky-retro look the previous
   canvas pipeline used to produce. */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: contrast(1.15) saturate(1.4) hue-rotate(-6deg);
}

/* Subtle vignette + scanline overlay so the pixelation reads as deliberate
   not as a broken video. */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18) 0,
      rgba(0, 0, 0, 0.18) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, 0.55) 100%
    );
  mix-blend-mode: multiply;
}

.shell {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
  text-align: center;
}

.brand {
  font-size: clamp(3rem, 12vw, 8rem);
  letter-spacing: 0.05em;
  margin: 0;
  text-shadow:
    0 0 0 #000,
    4px 4px 0 #ff5acd,
    8px 8px 0 #4cc8ff;
  font-weight: 700;
}

.tagline {
  margin: 0;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  opacity: 0.85;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0a12;
  background: #ffd84a;
  border: 4px solid #0a0a12;
  box-shadow: 6px 6px 0 #ff5acd, 12px 12px 0 #4cc8ff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #ff5acd, 14px 14px 0 #4cc8ff;
}
.cta:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 #ff5acd, 6px 6px 0 #4cc8ff;
}

/* Login page */
.card {
  position: relative;
  z-index: 1;
  background: #11111c;
  border: 4px solid #0a0a12;
  box-shadow: 8px 8px 0 #ff5acd, 16px 16px 0 #4cc8ff;
  padding: 2rem;
  max-width: 28rem;
  width: 100%;
  margin: 4rem auto;
}
.card h2 {
  margin-top: 0;
}
.card label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}
.card input[type="email"] {
  width: 100%;
  padding: 0.9rem 1rem;
  background: #0a0a12;
  color: #f4f4f6;
  border: 3px solid #ffd84a;
  font: inherit;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.card input[type="email"]:focus {
  outline: none;
  border-color: #ff5acd;
}
.muted {
  opacity: 0.6;
  font-size: 0.85rem;
}
.error {
  color: #ff5a6e;
  margin: 0 0 1rem;
}
.success {
  color: #6cf2a3;
  margin: 0 0 1rem;
}
