body {
  font-family: Arial, sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #0f2027;
  background-image: linear-gradient(to right, #2c5364, #203a43, #0f2027);
}
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0; /* BUKAN -1, agar canvas masih bisa menerima mouse events */
  background: linear-gradient(to right, rgb(0, 255, 234), rgb(38, 70, 250));
}

/* Pastikan konten di atas partikel */
main,
header,
footer {
  position: relative;
  z-index: 1;
}
.login-container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 25px #504dff;
  text-align: center;
  width: 90%;
  max-width: 350px;
  animation: fadeIn 1s ease-in;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.login-container:hover {
  transform: scale(1.02);
}
.login-container input[type="text"],
.login-container input[type="password"] {
  width: calc(100% - 32px);
  padding: 8px; /* Reduced padding */
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.login-container input[type="submit"] {
  width: calc(100% - 32px);
  padding: 12px; /* Reduced padding */
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  margin-top: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.login-container input[type="submit"]:hover {
  background-color: rgb(6, 216, 199);
  color: #0056b3;
  transform: translateY(-2px);
}
.login-container input[type="submit"]:active {
  transform: scale(0.98);
}

.login-container a {
  display: block;
  margin-top: 20px;
  color: #007bff;
  text-decoration: none;
}
.login-container h1 {
  color: #007bff;
}
.login-container a:hover {
  text-decoration: underline;
  color: rgb(6, 216, 199);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .login-container input[type="text"],
  .login-container input[type="password"],
  .login-container input[type="submit"] {
    width: calc(100% - 20px);
    padding: 10px; /* Further reduced padding */
  }
}
