/* Make sure body always fills screen */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  text-align: center;
  overflow-x: hidden;
}

/* Full-page background with gradient + stars */
body {
  background: radial-gradient(circle at 20% 20%, rgba(106, 13, 173, 0.7), transparent 60%),
              radial-gradient(circle at 80% 30%, rgba(142, 68, 173, 0.7), transparent 60%),
              radial-gradient(circle at 50% 80%, rgba(155, 89, 182, 0.6), transparent 70%),
              linear-gradient(180deg, #000000, #0a0014 90%);
  background-size: cover;
  background-attachment: fixed; /* Keeps it smooth when zooming */
  position: relative;
}

/* Moving star layer */
body::after {
  content: "";
  position: fixed; /* Fixed to viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent url("https://www.transparenttextures.com/patterns/stardust.png") repeat;
  animation: moveStars 150s linear infinite;
  opacity: 0.4;
  z-index: -1;
}

@keyframes moveStars {
  from { transform: translate(0, 0); }
  to { transform: translate(-800px, -800px); }
}

/* Overlay keeps everything centered */
.overlay {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
}

/* Main container */
.container {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(6px);
}

/* Headings */
h1 {
  margin: 0;
  font-size: 1.8rem;
}

h2 {
  margin: 0.2rem 0 1rem;
  font-size: 1rem;
  color: #d3d3d3;
}

/* Inputs */
input {
  width: 100%;
  padding: 0.7rem;
  margin: 0.5rem 0;
  border: none;
  border-radius: 0.7rem;
  font-size: 1rem;
  outline: none;
}

/* Button */
button {
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, #6a0dad, #9b59b6);
  color: white;
  transition: background 0.3s ease, transform 0.1s ease;
}

button:hover {
  background: linear-gradient(135deg, #9b59b6, #6a0dad);
  transform: scale(1.03);
}

/* Status text */
.status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #cccccc;
  max-width: 600px;
  text-align: center;
}

.footer a {
  color: #bb86fc;
  text-decoration: none;
}

/* Responsive design */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 0.9rem;
  }
  .container {
    padding: 1.5rem;
  }
}
