/* GLOBAL BACKGROUND */
.halloween-bg {
  background: #000;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Trebuchet MS", sans-serif;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* LIGHTNING FLASH */
.halloween-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.8);
  opacity: 0;
  animation: lightningFlash 8s infinite;
}

@keyframes lightningFlash {
  0%, 92%, 100% { opacity: 0; }
  93% { opacity: 1; }
  94% { opacity: 0; }
  95% { opacity: 1; }
  96% { opacity: 0; }
}

/* BAT APPEARS DURING LIGHTNING */
.halloween-bg::after {
  content: "🦇";
  position: fixed;
  top: 40px;
  right: 60px;
  font-size: 80px;
  opacity: 0;
  animation: batFlash 8s infinite;
}

@keyframes batFlash {
  0%, 92%, 100% { opacity: 0; }
  93% { opacity: 1; }
  94% { opacity: 0; }
  95% { opacity: 1; }
  96% { opacity: 0; }
}

/* LOGIN BOX */
.halloween-box {
  background: rgba(20, 0, 20, 0.85);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 25px #ff6600, 0 0 50px #6600ff inset;
  width: 320px;
  text-align: center;
  border: 2px solid #ff6600;
  position: relative;
  z-index: 10;
}

/* TITLE */
.spooky-title {
  font-size: 28px;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #ff6600;
}

/* SUBTITLE */
.spooky-sub {
  margin-bottom: 20px;
  font-size: 16px;
  opacity: 0.8;
}

/* INPUTS */
input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  font-size: 16px;
  border-radius: 8px;
  border: 2px solid #ff6600;
  background: #330033;
  color: #fff;
  box-shadow: 0 0 10px #6600ff inset;
}

input:focus {
  outline: none;
  box-shadow: 0 0 15px #ff0000 inset;
}

/* BUTTON */
.spooky-button {
  width: 100%;
  padding: 12px;
  font-size: 18px;
  background: #444;
  color: #eee;
  border: 3px solid #222;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: inset 0 0 10px #000, 0 0 15px #555;
  transition: 0.2s;
  font-family: "Georgia", serif;
}

.spooky-button:hover {
  background: #222;
  box-shadow: inset 0 0 15px #000, 0 0 25px #ff3300;
}

/* ERROR */
.error {
  color: #ff3333;
  margin-top: 10px;
  text-shadow: 0 0 5px #ff0000;
}
