:root {
  color-scheme: light;
  color: #1b2b43;
  background: #eef3f7;
  font: 1rem/1.5 system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
}

.auth-card {
  width: min(100%, 29rem);
  padding: clamp(1.25rem, 5vw, 2.5rem);
  background: white;
  border-top: 0.4rem solid #79b735;
  border-radius: 0.625rem;
  box-shadow: 0 1rem 3rem #20304a15;
}

.brand { width: 8.75rem; height: auto; }
h1 { margin: 1.25rem 0; line-height: 1.2; font-size: 1.65rem; }
form { display: grid; gap: 0.5rem; }
label { font-weight: 650; }
input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid #a9b8c9;
  border-radius: 0.375rem;
  color: inherit;
  font: inherit;
}

button {
  min-height: 2.75rem;
  border: 1px solid #386719;
  border-radius: 0.375rem;
  background: #386719;
  color: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: wait; }
input:focus-visible, button:focus-visible { outline: 3px solid #79b735; outline-offset: 2px; }
#message:empty { display: none; }

#message.error { color: #9c2a24; }
