body {
  background-image: conic-gradient(rgba(93, 82, 78, 0.47), rgba(93, 82, 78, 0.47)), var(--background-image-url);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

/* Center form and set a max-width */
.form-container {
  text-align: center;
  background: #ffffff0d;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 90vw;
  max-width: 400px;
  min-width: 280px;
}
.form-container h1 {
  color: white;
}

/* Style the input field */
.code-field {
  width: 100%;
  max-width: 300px;
  padding: 12px;
  margin-top: 10px;
  font-size: 18px;
  border: 2px solid #ccc;
  border-radius: 5px;
  text-transform: uppercase; /* Display input in uppercase */
  text-align: center;
}

/* Remove text-transform override in mobile autocomplete */
input:-webkit-autofill {
  text-transform: none;
}

/* Style submit button */
.submit-button {
  width: 100%;
  max-width: 300px;
  padding: 12px;
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background-color: #123b20;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-button:hover {
  background-color: #0e2f15;
}

/* Error message styling */
.error-message {
  color: red;
  margin-top: 15px;
  font-size: 16px;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
  .form-container {
      width: 90vw;;
      padding: 20px;
  }
  
  .code-field, .submit-button {
      font-size: 16px;
      padding: 10px;
  }
}
