.member-auth {
  min-height: calc(100dvh - 116px - env(safe-area-inset-top));
  border-color: rgb(59 41 34 / 10%);
  background: var(--surface);
}

.member-auth-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 24px calc(32px + env(safe-area-inset-bottom));
}

.member-auth-brand {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--espresso-950);
}

.member-auth-brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.member-auth-brand span {
  display: grid;
  line-height: 1.05;
}

.member-auth-brand strong {
  font-size: 1rem;
  font-weight: 800;
}

.member-auth-brand small {
  color: var(--walnut-700);
  font-size: 0.68rem;
  font-weight: 750;
}

.member-auth-heading {
  margin-inline: auto;
  text-align: center;
}

.member-auth-heading h1 {
  margin-block: 6px 12px;
  font-size: clamp(1.8rem, 8vw, 2.35rem);
  text-wrap: balance;
}

.member-auth-heading > p:last-child {
  max-width: 39ch;
  margin: 0 auto;
  color: var(--cement-700);
  font-size: 0.92rem;
  text-wrap: pretty;
}

.member-auth .member-auth-form {
  gap: 8px;
  margin-top: 28px;
}

.member-auth-field {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--cement-200);
  border-radius: 999px;
  padding-inline: 17px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.member-auth-field:focus-within {
  border-color: var(--walnut-700);
  box-shadow: 0 0 0 3px rgb(111 75 55 / 12%);
}

.member-auth-field > span {
  flex: 0 0 auto;
  color: var(--cement-700);
}

.member-auth-field input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.member-auth-field input::placeholder {
  color: var(--cement-500);
}

.member-auth-code input {
  max-width: none;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.member-auth .field-help {
  margin: 2px 8px 10px;
  line-height: 1.5;
}

.member-auth-submit {
  min-height: 52px;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--espresso-900);
}

.member-auth-submit .feather-icon {
  flex: 0 0 auto;
}

.member-auth .auth-divider {
  margin: 22px 0 18px;
}

.member-auth-provider {
  min-height: 52px;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--paper);
}

.member-auth-provider small {
  margin-left: auto;
  color: var(--cement-700);
  font-size: 0.68rem;
  font-weight: 750;
}

.google-mark {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--white);
  color: #4285f4;
  font-weight: 800;
}

.member-auth-provider-help {
  text-align: center;
}

.member-auth .form-message:empty {
  display: none;
}

.member-auth .form-message:not(:empty) {
  margin: 14px 0 0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #e7f0e9;
  text-align: center;
}

.member-auth .form-message.error {
  background: #f5e4e2;
}

.member-auth-support {
  margin: 18px 0 0;
  color: var(--cement-700);
  font-size: 0.84rem;
  text-align: center;
}

.member-auth-support span {
  color: var(--espresso-900);
  font-weight: 750;
}

.member-auth-text-action {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--walnut-700);
  font-weight: 750;
  text-decoration: underline;
  cursor: pointer;
}

.member-auth .auth-legal {
  margin-top: 22px;
  color: var(--cement-700);
  font-size: 0.73rem;
  line-height: 1.55;
  text-align: center;
}

@media (min-width: 700px) {
  .member-auth {
    grid-template-columns: 1fr;
  }

  .member-auth-panel {
    padding: 44px 36px calc(40px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 699px) {
  .member-auth {
    min-height: calc(100dvh - 116px - env(safe-area-inset-top));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-auth-field,
  .member-auth-submit,
  .member-auth-provider {
    transition: none;
  }
}
