:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #18211c;
  background: #eef3ef;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 10% 15%, rgb(181 220 198 / 55%), transparent 35%),
    radial-gradient(circle at 92% 84%, rgb(234 209 163 / 48%), transparent 32%),
    #eef3ef;
}

.login-card {
  width: min(100%, 29rem);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid #d6dfd8;
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 1.5rem 4rem rgb(25 49 35 / 12%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 2.5rem;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0.9rem;
  color: #fff;
  background: #215b3b;
  font-size: 1.25rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-block-start: 0.125rem;
  color: #647069;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #39704f;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.intro {
  margin: 1rem 0 2rem;
  color: #5c6861;
  line-height: 1.55;
}

.field {
  margin-block-end: 1.25rem;
}

label {
  display: block;
  margin-block-end: 0.45rem;
  font-weight: 700;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.label-row label {
  margin: 0;
}

input,
select {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #aebbb2;
  border-radius: 0.7rem;
  color: #18211c;
  background: #fff;
  font-size: 1rem;
}

input:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 3px solid #73a985;
  outline-offset: 2px;
}

input:user-invalid {
  border-color: #9d332e;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  border: 1px solid #215b3b;
  color: #fff;
  background: #215b3b;
}

.primary-button:hover {
  background: #17472e;
}

.secondary-button {
  margin-block-start: 0.75rem;
  border: 1px solid #b8c4bc;
  color: #27352d;
  background: #f7faf8;
}

.text-button {
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 0;
  color: #215b3b;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.hint {
  display: block;
  margin-block-start: 0.4rem;
  color: #667169;
  font-size: 0.875rem;
}

.status {
  min-height: 1.5rem;
  margin: 1.25rem 0 0;
  color: #9d332e;
  line-height: 1.45;
}

.status.is-info {
  color: #215b3b;
}

@media (max-width: 30rem) {
  .login-shell {
    align-items: start;
    padding-block-start: 1rem;
  }

  .login-card {
    border-radius: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
