/* Auth screens — Fizzy-style: one narrow centered column, one question per
   screen.
   NOTE: .auth must live INSIDE .container, never on the same element —
   layout.css sorts after auth.css, so .container's max-inline-size would win
   the cascade and stretch the column to 72rem. */

/* <main> is the 1fr grid row between header and footer; flex fills it and
   centers content. .auth's padding-block is a min gap so the form never
   kisses the header/footer on short screens. */
main.main--auth {
  display: flex;
  flex-direction: column;
}

.main--auth > .section {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.auth {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-inline: auto;
  max-inline-size: 22rem;
  padding-block: 2.5rem;
  text-align: center;
}

/* Brand mark: the RJ45 plug icon, sized up like a seal. */
.auth__brand {
  align-self: center;
  display: block;
  margin-block-end: var(--block-space-half);
}

.auth__brand-mark {
  display: block;
  height: 2.75rem;
  width: auto;
}

.auth__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-block: 0;
}

.auth__subtitle {
  color: var(--color-subtle-dark);
  font-size: 0.95rem;
  margin-block: 0;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: var(--block-space);
}

/* Inputs inherit the centered text — that's the Fizzy look. */
.auth__form .input {
  --input-border-radius: 0.75em;
  --input-padding: 0.75em 1em;
}

.auth__hint {
  color: var(--color-subtle-dark);
  font-size: 0.85rem;
  margin-block: 0;

  strong {
    color: var(--color-ink);
  }

  a {
    color: var(--color-link);
  }
}

/* The one action: a centered pill, sized to its label — not a full-width bar. */
.auth__submit {
  --btn-border-radius: 999px;
  align-self: center;
  margin-block-start: 0.25rem;
  padding-inline: 1.6em;

  .icon {
    block-size: 1em;
    inline-size: 1em;
  }
}

.auth__errors {
  background-color: var(--color-subtle-light);
  border: 1px solid var(--color-negative);
  border-radius: 0.75em;
  color: var(--color-negative);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  text-align: start;

  ul {
    margin-block: 0;
    padding-inline-start: 1.1em;
  }
}

.auth__alt {
  color: var(--color-subtle-dark);
  font-size: 0.9rem;
  margin-block: 0;

  a {
    color: var(--color-link);
  }
}

/* The 6-character verification code: one big, calm input. */
.auth__code {
  font-family: var(--font-mono, monospace);
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  padding-block: 0.4em;
  text-transform: uppercase;
}

/* Resend is a button_to form — style the button as a quiet link. */
.auth__resend {
  background: none;
  border: 0;
  color: var(--color-link);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--color-subtle);
}

/* Three-dot step progress for the signup wizard — purely visual; screen
   readers get aria-current + sr-only text instead. */
.auth-steps {
  align-items: center;
  display: flex;
  gap: var(--block-space-half);
  justify-content: center;
}

.auth-step {
  background-color: var(--color-subtle);
  block-size: 0.45rem;
  border-radius: 999px;
  inline-size: 0.45rem;
  transition: background-color 200ms ease, scale 200ms ease;
}

.auth-step--done {
  background-color: var(--color-positive);
}

.auth-step--active {
  background-color: var(--color-link);
  inline-size: 1.4rem;
}
