/* Shared bits for the Firebase-wired auth pages (Step 10):
   a status/error line, a busy/disabled submit button, and the login
   "forgot password" link. Kept tiny and page-agnostic so it layers cleanly
   over each page's own neon styling. */

.auth-status {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
}
.auth-status[hidden] {
  display: none;
}
.auth-status.is-error {
  color: var(--nd-danger);
}
.auth-status.is-info {
  color: var(--nd-info);
}

button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.auth-forgot {
  display: block;
  margin: 0.6rem auto 0;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.85rem;
  color: var(--nd-info);
  text-decoration: underline;
  cursor: pointer;
}
.auth-forgot:hover {
  color: var(--nd-info-hover);
}

/* The way back out of a card you opened by mistake (Step 45).

   Getting here took four presses on the landing page's card — Designer, the
   terms, "No, sign up" — and until now the only way to undo the last of them
   was the browser's back button, which lands on the page *behind* the card
   rather than on the card. This link goes to the card: `?register=1` on the
   home page re-opens it over the blurred page, exactly as "Get started" does.

   Sits above the title and hugs the left edge, where a back control belongs and
   where it can't be mistaken for the thing to press next. `align-self` rather
   than a margin because both cards are flex columns with a gap. */
.auth-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.1rem;
  font-size: 0.85rem;
  color: var(--nd-grey-light);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease;
}
.auth-back:hover,
.auth-back:focus-visible {
  color: var(--nd-white);
}
/* The arrow is drawn, not written: "←" renders as a box in a few of the fonts
   this page falls back to, and it is the half of the control that has to be
   legible before the words are read. */
.auth-back-arrow {
  flex: none;
  width: 0.75em;
  height: 0.75em;
  fill: currentColor;
}
