body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #050505;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  font-family: "Share Tech Mono", monospace;
  overflow: hidden;
  user-select: none;
  color: #00f3ff;
}

body::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06)
    );
  z-index: 2;
  background-size:
    100% 2px,
    3px 100%;
  pointer-events: none;
}

.container {
  position: relative;
  width: 400px;
  height: 300px;
  z-index: 5;
}

.login-form {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 20, 0.95);
  border: 2px solid #00f3ff;
  animation: borderPulse 2s infinite linear;

  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
  z-index: 1;
  box-sizing: border-box;
  padding: 30px;
  overflow: hidden;
}

.login-form::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 20px;
  background: rgba(0, 243, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
  animation: scanline 3s linear infinite;
  pointer-events: none;
}

.login-form h2 {
  margin-top: 0;
  color: #00f3ff;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 1.5rem;
  margin-bottom: 25px;
  animation: glitch-skew 1s infinite linear alternate-reverse;
  position: relative;
}

.login-form h2::before,
.login-form h2::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.login-form h2::before {
  left: 2px;
  text-shadow: -1px 0 #ff00c1;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.login-form h2::after {
  left: -2px;
  text-shadow: -1px 0 #00fff9;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.login-form input {
  margin: 10px 0;
  padding: 12px;
  width: 90%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #333;
  border-left: 4px solid #00f3ff;
  color: #fff;
  font-family: "Share Tech Mono", monospace;
  outline: none;
  transition: 0.3s;
  animation: tinyShake 0.2s infinite;
}

.login-form input:focus {
  box-shadow:
    0 0 25px rgba(0, 243, 255, 0.8),
    inset 0 0 10px rgba(0, 243, 255, 0.2);
  border-color: #fff;
  animation: none;
}

.slider-container {
  position: relative;
  width: 90%;
  height: 40px;
  background: #111;
  border: 1px solid #333;
  margin-top: 25px;
  overflow: hidden;
  box-shadow: inset 0 0 10px #000;
}

.slider-text {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #555;
  pointer-events: none;
  z-index: 1;
  transition: color 0.3s;
}

.slider-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 243, 255, 0.2),
    rgba(0, 243, 255, 0.2) 10px,
    rgba(0, 243, 255, 0.4) 10px,
    rgba(0, 243, 255, 0.4) 20px
  );
  transition: width 0.1s;
}

.slider-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  background: #00f3ff;
  cursor: ew-resize;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px #00f3ff;
}

.slider-thumb::after {
  content: ">>";
  color: #000;
  font-weight: bold;
  font-size: 1.2rem;
  animation: arrowPulse 0.5s infinite alternate;
}

.slider-thumb:hover {
  background: #fff;
}

.slider-container.unlocked .slider-text {
  color: #000;
  font-weight: bold;
  content: "ACCESS GRANTED";
}

.slider-container.unlocked .slider-track {
  background: #0f0;
  width: 100% !important;
}

.slider-container.unlocked .slider-thumb {
  background: #0f0;
  box-shadow: 0 0 20px #0f0;
  pointer-events: none;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes borderPulse {
  0% {
    border-color: #00f3ff;
    box-shadow: 0 0 10px #00f3ff;
  }
  33% {
    border-color: #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
  }
  66% {
    border-color: #ffff00;
    box-shadow: 0 0 10px #ffff00;
  }
  100% {
    border-color: #00f3ff;
    box-shadow: 0 0 10px #00f3ff;
  }
}

@keyframes scanline {
  0% {
    top: -20%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 120%;
    opacity: 0;
  }
}

@keyframes tinyShake {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(1px, 1px);
  }
  50% {
    transform: translate(-1px, -1px);
  }
  75% {
    transform: translate(-1px, 1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes arrowPulse {
  from {
    opacity: 0.5;
    transform: translateX(-2px);
  }
  to {
    opacity: 1;
    transform: translateX(2px);
  }
}

@keyframes glitch-skew {
  0% {
    transform: skew(0deg);
  }
  20% {
    transform: skew(-2deg);
  }
  40% {
    transform: skew(2deg);
  }
  60% {
    transform: skew(-1deg);
  }
  80% {
    transform: skew(1deg);
  }
  100% {
    transform: skew(0deg);
  }
}

@keyframes glitch-anim {
  0% {
    clip: rect(12px, 9999px, 81px, 0);
  }
  20% {
    clip: rect(84px, 9999px, 9px, 0);
  }
  40% {
    clip: rect(32px, 9999px, 14px, 0);
  }
  60% {
    clip: rect(6px, 9999px, 63px, 0);
  }
  80% {
    clip: rect(93px, 9999px, 34px, 0);
  }
  100% {
    clip: rect(55px, 9999px, 92px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 100px, 0);
  }
  20% {
    clip: rect(2px, 9999px, 4px, 0);
  }
  40% {
    clip: rect(23px, 9999px, 78px, 0);
  }
  60% {
    clip: rect(89px, 9999px, 12px, 0);
  }
  80% {
    clip: rect(45px, 9999px, 56px, 0);
  }
  100% {
    clip: rect(10px, 9999px, 3px, 0);
  }
}

.sign {
  position: absolute;
  top: 0;
  left: 0;
  width: 440px;
  height: 340px;
  background-color: #1a1a1a;
  background-image: url("UnderConstruction.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 2px solid #555;
  border-top: 2px solid #777;
  border-bottom: 2px solid #333;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  z-index: 10;
  cursor: pointer;
  transform-origin: 20px 20px;
  margin-left: -20px;
  margin-top: -20px;
}

.sign::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: repeating-linear-gradient(
    45deg,
    #000,
    #000 10px,
    #f39c12 10px,
    #f39c12 20px
  );
  opacity: 0.8;
}

.sign.interactive {
  cursor: grab;
}
.sign.grabbing {
  cursor: grabbing;
}

.nudge {
  animation: nudge 0.4s ease-out;
}
@keyframes nudge {
  0% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(1.5deg);
  }
  60% {
    transform: rotate(-0.5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.nail {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 24px;
  height: 24px;
  background: #2b2b2b;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  z-index: 11;
  cursor: alias;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s;
}
.nail::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #111;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}
.nail:hover {
  background-color: #444;
}
.nail.removed {
  display: none;
}
