/* style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 400px;
  animation: fadeIn 0.6s ease-in-out;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #222;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

input,
select {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.4rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
  outline: none;
}

button {
  width: 100%;
  margin-top: 1.8rem;
  padding: 0.9rem;
  background: #007bff;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: #0056b3;
}

button:active {
  transform: scale(0.97);
}

#errorMessage {
  color: #d62828;
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .container {
    padding: 1.5rem;
    border-radius: 10px;
  }
  h1 {
    font-size: 1.5rem;
  }
  label {
    font-size: 0.9rem;
  }
}
