#password-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #ff6ec4, #7873f5, #83eaf1, #63a4ff);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#password-input {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  max-width: 300px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

#password {
  width: 80%;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  color: #ff69b4;
  text-align: center;
  font-size: 1.5em;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 5px;
  outline: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

#password.error {
  animation: shake 0.5s;
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.4);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-10px);
  }
  40%,
  80% {
    transform: translateX(10px);
  }
}

#keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

#keypad button {
  padding: 15px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ff69b4;
  font-family: "Orbitron", sans-serif;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#keypad button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

#keypad button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#clear,
#enter {
  background: rgba(255, 255, 255, 0.2) !important;
}

#enter {
  background: linear-gradient(45deg, darkgray, white) !important;
}

/* Estilos responsivos */
@media (max-width: 480px) {
  #password-input {
    max-width: 280px;
    padding: 15px;
  }

  #keypad button {
    padding: 12px;
    font-size: 1em;
  }
}
