@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
  --primary-color: #00ff00;
  --secondary-color: #00ffff;
  --background-color: #000000;
  --text-color: #ffffff;
  --input-background: rgba(0, 255, 0, 0.1);
  --input-text-color: #ffffff;
  --neon-glow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--primary-color),
    0 0 82px var(--primary-color), 0 0 92px var(--primary-color), 0 0 102px var(--primary-color), 0 0 151px var(--primary-color);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Orbitron', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--background-color);
  overflow: hidden;
  position: relative;
  padding: 1rem;
}

#video-background {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: -1;
  filter: hue-rotate(90deg) contrast(1.5) blur(5px);
}

.login-box {
  width: 100%;
  max-width: 450px;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.7);
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: visible;
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px var(--primary-color), 0 0 60px var(--secondary-color); }
  50% { box-shadow: 0 0 40px var(--secondary-color), 0 0 80px var(--primary-color); }
}

h1 {
  color: var(--text-color);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: var(--neon-glow);
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

label {
  text-align: left;
  width: 100%;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 1rem;
  text-transform: uppercase;
}

input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  background: var(--input-background);
  color: var(--input-text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  caret-color: var(--primary-color);
  position: relative;
  z-index: 2;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input:focus {
  outline: none;
  box-shadow: 0 0 15px var(--primary-color);
  background: rgba(0, 255, 0, 0.2);
}

input[type="submit"] {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

input[type="submit"]:hover {
  box-shadow: 0 0 20px var(--primary-color);
  transform: scale(1.05);
}

.error {
  color: #ff0000;
  margin-top: 1rem;
  font-size: 0.875rem;
  text-shadow: 0 0 5px #ff0000;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .login-box {
    padding: 1.5rem;
  }

  input[type="submit"] {
    padding: 0.6rem 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 12px;
  }

  .login-box {
    padding: 1rem;
  }

  h1 {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  input[type="submit"] {
    padding: 0.5rem 1rem;
  }
}

@media (hover: none) {
  input[type="submit"]:hover {
    transform: none;
  }
}