* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100svh;
  background: linear-gradient(135deg, #1f2933, #111827);
  color: #111827;
}

.page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: 10vh;
}

.login-form {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  margin: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.login-form h1 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
}

.form-group input {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

button {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border-radius: 10px;
  border: none;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover {
  background-color: #1d4ed8;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible,
.form-group input:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.validation-errors {
  margin-bottom: 24px;
  padding: 14px 16px;
  background-color: #fef2f2;     /* very light red */
  border: 1px solid #fecaca;     /* soft red border */
  border-radius: 10px;           /* matches your input/button rounds */
  color: #dc2626;                /* clear red text */
  font-size: 0.95rem;
  line-height: 1.6;
}

.validation-errors p {
  margin: 8px 0;
}

.validation-errors p:first-child {
  margin-top: 0;
}

.validation-errors p:last-child {
  margin-bottom: 0;
}

body > main > form > button {
  margin-top: 2em;
}

/* Larger screens */
@media (min-width: 640px) {
  .login-form {
    padding: 40px 32px;
  }

  .login-form h1 {
    font-size: 1.75rem;
    margin-bottom: 32px;
  }
}