/* -------------------- GLOBAL RESETS -------------------- */
body, html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  font-family: 'Orbitron', sans-serif;
  background: black;
}

/* -------------------- BACKGROUNDS -------------------- */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/moonpilotbg.jpg') no-repeat center center/cover;
  z-index: 0;
}

.background-login {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/moonpilotbg1.jpg') no-repeat center center/cover;
  z-index: 0;
}

.signup-background {
  background: url('assets/moonpilotbg2.jpg') no-repeat center center/cover;
}

/* -------------------- STARFIELD -------------------- */
#starfield {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* -------------------- OVERLAY CONTAINER -------------------- */
.overlay {
  position: fixed;
  width: 100%;
  text-align: center;
  top: 0;
  z-index: 2;
}

/* -------------------- LOGO BOX -------------------- */
.content {
  margin-top: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  display: inline-block;
  border-radius: 12px;
  box-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
  opacity: 0;
  animation:
    flickerFade 3s ease-in-out 4s forwards,
    neonBreath 4s ease-in-out infinite;
}

/* Logo image */
.logo-img {
  max-width: 225px;
  height: auto;
  margin-bottom: 10px;
}

/* Subtitle text */
.subtitle {
  font-size: 20px;
  color: #00ffff; /* Neon blue */
  text-shadow:
    0 0 2px #000,     /* Black border */
    0 0 4px #00ffff,
    0 0 8px #00ffff,
    0 0 16px #00ffff;
  animation: flickerRandom 2s infinite;
}

/* -------------------- BUTTON SECTION -------------------- */
.bottom-buttons {
  position: fixed;
  bottom: 100px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 2;
  opacity: 0;
  animation: fadeInEffect 3s ease-in-out 4s forwards;
}

.button-box {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  transition: 0.4s;
  overflow: hidden;
}

.button-box:hover {
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 20px #ff00ff, 0 0 30px #ff00ff;
  transform: scale(1.05);
}

.btn {
  background: #00ffff;
  color: black;
  padding: 12px 25px;
  font-size: 18px;
  border: 2px solid #ff00ff;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 10px #ff00ff;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ff00ff88;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
  top: 50%;
  left: 50%;
  pointer-events: none;
}

.btn:active::after {
  transform: scale(10);
  opacity: 0;
  transition: 0s;
}

/* -------------------- FOOTER -------------------- */
.footer {
  position: fixed;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #00ffff;
  animation: fadeInEffect 3s ease-in-out 4s forwards;
  opacity: 0;
  z-index: 2;
}

.footer-links a {
  color: #00ffff;
  margin: 0 8px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ff00ff;
}

/* -------------------- ANIMATIONS -------------------- */
@keyframes fadeInEffect {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes flickerFade {
  0%   { opacity: 0; }
  20%  { opacity: 0.3; }
  40%  { opacity: 0.7; }
  60%  { opacity: 0.9; }
  80%, 100% { opacity: 1; }
}

@keyframes flickerRandom {
  0%, 18%, 20%, 50%, 55%, 100% { opacity: 1; }
  19%, 21%, 51%, 54% { opacity: 0.3; }
}

@keyframes neonBreath {
  0% {
    box-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
  }
  50% {
    box-shadow: 0 0 20px #ff00ff, 0 0 40px #00ffff;
  }
  100% {
    box-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
  }
}

.login-center-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInEffect 2s ease-in-out 2s forwards; /* 2s delay */
}

.login-container {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #00ffff;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  width: 320px;
  max-width: 90%;
  box-shadow: 0 0 15px #00ffff, 0 0 30px #ff00ff;
}

.login-heading {
  font-size: 28px;
  color: #00ffff;
  text-shadow: 0 0 2px #000, 0 0 5px #00ffff, 0 0 10px #00ffff;
  margin-bottom: 20px;
  animation: flickerText 2s infinite alternate;
}

.login-form input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ff00ff;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 16px;
}

/* Optional fade animation if not already present */
@keyframes fadeInEffect {
  from { opacity: 0; }
  to { opacity: 1; }
}
