body {
  background: linear-gradient(to right, #6daffe, #c9eaff);
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* === ANIMASI KERETA === */
.train-track {
  position: absolute;
  bottom: 20px;
  width: 100%;
  height: 60px;
  overflow: hidden;
}

.train {
  position: absolute;
  font-size: 3rem;
  right: -15%; /* mulai dari luar layar kanan */
  animation: trainMove 8s linear infinite;
}

@keyframes trainMove {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(-130vw); /* jalan ke kiri penuh layar */
    opacity: 0; /* hilang di kiri */
  }
}

/* === LOGIN FORM === */
.login-container {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  width: 350px;
  text-align: center;
  z-index: 10;
}

.login-container img {
  width: 100px;
  margin-bottom: 15px;
}

.btn-primary {
  background-color: #007bff;
  border: none;
  border-radius: 8px;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.shake {
  animation: shakeAnim 0.3s;
}

@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Kotak login dengan efek aura biru */
.login-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 15px;
  width: 350px;
  text-align: center;
  z-index: 10;
  border: 2px solid rgba(0, 100, 255, 0.8);
  box-shadow:
    0 0 20px rgba(0, 0, 255, 0.8),
    0 0 40px rgba(0, 150, 255, 0.6),
    0 0 60px rgba(0, 200, 255, 0.4);
  animation: glowBlue 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

/* Efek nyala–redup–nyala biru */
@keyframes glowBlue {
  0% {
    box-shadow:
      0 0 10px rgba(0, 0, 255, 0.7),
      0 0 20px rgba(0, 150, 255, 0.5),
      0 0 30px rgba(0, 200, 255, 0.3);
    border-color: rgba(0, 120, 255, 0.7);
  }
  50% {
    box-shadow:
      0 0 30px rgba(0, 0, 255, 1),
      0 0 60px rgba(0, 150, 255, 0.8),
      0 0 90px rgba(0, 200, 255, 0.6);
    border-color: rgba(0, 180, 255, 1);
  }
  100% {
    box-shadow:
      0 0 10px rgba(0, 0, 255, 0.7),
      0 0 20px rgba(0, 150, 255, 0.5),
      0 0 30px rgba(0, 200, 255, 0.3);
    border-color: rgba(0, 120, 255, 0.7);
  }
}

/* Efek hover (menyala lebih terang saat diarahkan kursor) */
.login-container:hover {
  box-shadow:
    0 0 40px rgba(0, 0, 255, 1),
    0 0 80px rgba(0, 180, 255, 0.9),
    0 0 120px rgba(0, 220, 255, 0.8);
  transform: scale(1.01);
}
