/* Global dark theme */
body {
  background-color: #121212;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative; /* For particle positioning */
  overflow: hidden; /* Prevent scrollbars */
}

.heading-main {
  color: #0ff;
  text-align: center;
  margin: 1rem 0;
  font-size: clamp(1.5rem, 5vw, 2rem); /* Responsive font size */
}

.form-title {
  margin: 0;
}

/* Form inputs and buttons */
input, select, button {
  padding: 0.625rem; /* 10px at 16px base */
  border: none;
  margin:6px 0;
  border-radius: 5px;
  font-size: clamp(0.875rem, 4vw, 1rem); /* Responsive font size */
  background-color: #1f1f1f;
  color: white;
  width: 100%;
  box-sizing: border-box; /* Ensure padding doesn't affect width */
}

button {
  background-color: #0ff;
  color: #000;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #00cccc;
}

/* Centered Form */
form {
  width: 90%; /* Relative width for smaller screens */
  max-width: 400px; /* Increased max-width for better desktop experience */
  margin: 2rem auto;
  background-color: #1c1c1c;
  padding: clamp(1rem, 5vw, 2rem); /* Responsive padding */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  position: relative; /* Ensure form stays above particles */
  z-index: 1; /* Place form above particles */
}

/* Placeholder styling */
input::placeholder {
  color: #aaa;
}

/* Media Queries for additional responsiveness */
@media (max-width: 600px) {
  form {
    width: 80%; /* Full width on small screens */
    padding: 1rem;
  }
  .top{
    margin-top:auto;
    margin-bottom:auto;
  }
  input, select, button {
    padding: 0.5rem;
    font-size: clamp(0.75rem, 3.5vw, 0.875rem);
  }

}
