.auth-recovery-link {
  display: inline-flex;
  align-self: flex-end;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.auth-recovery-link:hover,
.auth-recovery-back:hover {
  text-decoration: underline;
}

.auth-recovery-section {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 64px;
}

.auth-recovery-card {
  width: min(100%, 520px);
  min-width: 0;
}

.auth-recovery-card h1 {
  overflow-wrap: anywhere;
}

.auth-recovery-intro {
  margin: 12px 0 20px;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.auth-recovery-card .form-stack,
.auth-recovery-card .form-stack label,
.auth-recovery-card .form-stack input {
  min-width: 0;
  width: 100%;
}

.auth-recovery-card .form-stack input {
  min-height: 46px;
}

.auth-recovery-card .inline-flash {
  overflow-wrap: anywhere;
}

.auth-recovery-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 16px;
  color: var(--blue);
  text-decoration: none;
}

.auth-recovery-cta {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 430px) {
  .auth-recovery-section {
    padding: 24px 12px calc(36px + env(safe-area-inset-bottom));
  }

  .auth-recovery-card {
    padding: 20px 16px;
  }

  .auth-recovery-card .form-stack input {
    font-size: 16px;
  }
}

/* Shared local-auth validation, scoped away from account/admin forms. */
.auth-card .auth-field-error {
  display: block;
  color: var(--danger);
  overflow-wrap: anywhere;
}

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

.auth-card [data-local-auth-form] label,
.auth-card [data-local-auth-form] input {
  min-width: 0;
}
