/* Welcome back: one clear action and a quieter supporting hierarchy. */
html body #authForm .auth-form-heading {
  padding-top: 0 !important;
}

html body #authForm .auth-form-heading::before {
  display: none !important;
  content: none !important;
}

html body .auth-card:not(.signup-mode):not(.verify-mode) .auth-brand {
  transform: translateY(-15%) !important;
}

html body #authForgotPasswordButton {
  justify-self: end !important;
  margin: -10px 0 0 auto !important;
  padding: 2px 0 !important;
  text-align: right !important;
}

html body #authForm .account-auth-actions {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
}

html body .auth-signup-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: -3px 0 1px;
  color: rgba(8, 47, 57, 0.58);
  font-size: 0.8rem;
  font-weight: 650;
  text-align: center;
}

html body .auth-signup-prompt #authOpenSignUpButton {
  min-height: 30px;
  padding: 2px 0;
  color: #087e78;
  font-size: inherit;
  font-weight: 820;
}

html body .auth-card > .account-auth-message:empty {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
}

html body .auth-card:not(.signup-mode):not(.verify-mode):not(.has-auth-message) {
  grid-template-areas:
    "mascot form"
    "brand form"
    ". legal" !important;
}

@media (max-width: 720px) {
  html body .auth-card:not(.signup-mode):not(.verify-mode):not(.has-auth-message) {
    grid-template-areas:
      "mascot"
      "brand"
      "form"
      "legal" !important;
  }

  html body .auth-signup-prompt {
    flex-wrap: wrap;
  }
}
