:root {
  color: #1f2933;
  background: #f5f7fa;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
}

.auth-card {
  width: min(100%, 28rem);
  padding: 2rem;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgb(31 41 51 / 8%);
}

.auth-card h1 {
  margin: 0 0 1.5rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.375rem;
  font-weight: 600;
}

.auth-form input,
.auth-form button {
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  font: inherit;
}

.auth-form input {
  border: 1px solid #9fb3c8;
}

.auth-form button {
  border: 1px solid #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.auth-form button:hover,
.auth-form button:focus-visible {
  background: #1e40af;
}

.auth-form input:focus-visible,
.auth-form button:focus-visible,
.auth-switch a:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

.form-error {
  padding: 0.75rem;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
}

.auth-switch {
  margin: 1.5rem 0 0;
}

.auth-switch a {
  color: #1d4ed8;
  font-weight: 700;
}
