.auth-card {
  max-width: 34rem;
  margin: clamp(2rem, 8vh, 6rem) auto;
  padding: clamp(1.25rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  color: var(--ink);
}

.auth-card h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.1;
}

.auth-card .auth-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-card .auth-body:not(:empty) {
  margin-top: 1.6rem;
}

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

.auth-card label {
  margin-top: 0.45rem;
  font-weight: 650;
}

.auth-card input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.7rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #788374;
  border-radius: 0.45rem;
  background: var(--paper);
  color: inherit;
  font: inherit;
}

.auth-card .auth-password-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.auth-card .auth-password-toggle {
  min-width: 4.4rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--soft);
  color: var(--forest);
  font-weight: 700;
}

.auth-card small {
  color: var(--muted);
}

.auth-card .auth-error {
  margin: 0.45rem 0;
  color: #a12326;
}

.auth-card .auth-error:empty {
  margin: 0;
}

.auth-card .auth-submit {
  justify-self: start;
  min-height: 2.75rem;
  margin-top: 0.35rem;
  padding: 0.55rem 1.2rem;
  border: 0;
  border-radius: 0.45rem;
  background: var(--forest);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-card .auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-card .auth-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1.25rem;
  margin-top: 1.2rem;
}

.auth-card .auth-link {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
}

.auth-card dt {
  margin-top: 0.7rem;
  font-weight: 650;
}

.auth-card dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}
