.auth-shell {
  display: grid;
  gap: var(--s-4);
  min-height: calc(100vh - 100px);
  align-content: center;
}

.auth-card {
  width: min(440px, 92vw);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-2);
}

.auth-brand {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
  text-align: left;
}

.auth-brand-logo {
  display: block;
  width: min(180px, 68vw);
  height: auto;
}

.auth-brand > div {
  display: grid;
  gap: 6px;
}

.auth-title {
  margin: 0;
  color: var(--brand-2);
  font-size: var(--fs-5);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-product-description {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-2);
  line-height: var(--lh-3);
}

.field-error {
  margin-top: 2px;
  color: var(--danger);
  font-size: var(--fs-2);
  font-weight: 500;
  line-height: var(--lh-2);
}

.auth-error {
  margin-top: 0;
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

.auth-signature {
  margin: var(--s-5) 0 0;
  color: var(--muted);
  font-size: var(--fs-1);
  line-height: var(--lh-2);
  text-align: left;
}

.auth-subtitle {
  margin: 0 0 var(--s-4);
  color: var(--muted);
  font-size: var(--fs-2);
}

.auth-form {
  display: grid;
  gap: var(--s-3);
}

.remember-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-2);
  color: var(--muted);
}

.remember-toggle input[type="checkbox"] {
  appearance: none;
  display: inline-grid;
  place-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.remember-toggle input[type="checkbox"]::before {
  width: 9px;
  height: 5px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  content: "";
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg);
}

.remember-toggle input[type="checkbox"]:checked {
  border-color: var(--brand-solid);
  background: var(--brand-solid);
}

.remember-toggle input[type="checkbox"]:checked::before {
  opacity: 1;
}

@media (hover: hover) {
  .remember-toggle input[type="checkbox"]:hover {
    border-color: var(--brand-solid-strong);
  }

  .remember-toggle input[type="checkbox"]:checked:hover {
    border-color: var(--brand-solid-strong);
    background: var(--brand-solid-strong);
  }
}

.remember-toggle input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(16, 29, 60, 0.35);
  outline-offset: 3px;
}

.auth-card .input:-webkit-autofill,
.auth-card .input:-webkit-autofill:hover,
.auth-card .input:-webkit-autofill:focus,
.auth-card .input:autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #fff inset;
  background-color: #fff;
}

.auth-row {
  display: grid;
  gap: var(--s-2);
}

.stepper {
  display: flex;
  gap: 8px;
  margin: 0 0 var(--s-3);
}

.stepper span {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(16, 29, 60, 0.16);
}

.stepper span.is-active {
  background: var(--brand);
}
