/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(179, 176, 195);
}
.container {
  position: relative;
  max-width: 400px; /* Ensures the form doesn't stretch too wide */
  width: 100%;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  text-align: center; /* Center-aligns the content */
}
.container header {
  font-size: 1.5rem;
  color: #292525;
  font-weight: 1000;
  text-align: center;
}
.container .form {
  margin-top: 30px;
}
.form .input-box {
  width: 100%;
  margin-top: 20px;
  text-align: left; /* Ensures labels and input align correctly */
}
.input-box label {
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
}
.form :where(.input-box input, .select-box) {
  position: relative;
  height: 50px;
  width: 100%;
  outline: none;
  font-size: 1rem;
  color: #707070;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 15px;
}
.input-box input:focus {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
.form button {
  height: 55px;
  width: 50%; /* Adjust button width for balance */
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  margin: 20px auto 0 auto; /* Centers button horizontally */
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgb(130, 106, 251);
  display: block; /* Ensures margin works properly */
}
.form button:hover {
  background: rgb(88, 56, 250);
}

/* Responsive adjustments */
@media screen and (max-width: 500px) {
  .container {
    padding: 20px;
  }
  .form button {
    width: 70%; /* Button width adapts on smaller screens */
    font-size: 0.9rem;
  }
  .form .input-box input {
    font-size: 0.9rem;
  }
  .container header {
    font-size: 1.3rem;
  }
}
