/* --- Sign in and Create an account (views/auth/login.php, signup.php, in layouts/site.php). The title, its eyebrow and
   line in the middle, then one panel (the booking flow's, pages/book.css) 520px wide at most, in the middle; its button
   the panel's full width, and the line under it (New here?, Already have an account?) centred. --- */
.auth {
  max-width: var(--auth-panel-w);
  margin-inline: auto;
  padding-bottom: var(--sp-16);
}

.auth__head {
  justify-items: center;
  text-align: center;
}

.auth__panel {
  box-shadow: var(--shadow-glass);
}

.auth__button {
  width: 100%;
}

.auth__after {
  justify-self: center;
  font-size: var(--fs-small);
  text-align: center;
}

/* Create an account while sign-ups are not open (auth/signup-soon.php): the words under Coming soon */
.auth__text {
  text-align: center;
  color: var(--c-text-muted);
}

/* --- The code generator pages (auth/setup.php, auth/code.php): the same panel. Setup: Step 1 and Step 2 as small blue
   capitals above their line, the QR code on a grey card, the key behind "Can't scan it?" with a Copy button. --- */
.auth__form {
  display: grid;
  gap: var(--sp-5);
}

.auth__step {
  display: grid;
  gap: var(--sp-1);
}

.auth__qr {
  display: grid;
  justify-items: center;
  padding: var(--sp-4);
  background-color: var(--c-surface);
  border-radius: var(--radius-1);
}

.auth__key summary {
  font-size: var(--fs-small);
  color: var(--c-action);
  text-decoration: underline;
  cursor: pointer;
}

.auth__key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background-color: var(--c-surface);
  border-radius: var(--radius-1);
}

.auth__secret {
  font-size: var(--fs-small);
  letter-spacing: var(--tracking-caps);
  overflow-wrap: anywhere;
}

/* The hexagons at the top right of the sign-in pages (the lines and the fading filled ones), at their own strength.
   The bottom-left ones stay as on the rest of the site. */
.shop:has(.auth) .shop__hex:not(.shop__hex--bottom) {
  background-color: var(--c-hex-auth);
}

/* --- Reset password, invitation, backup codes: a small line under a field (At least 10 characters), the amber note
   above the backup codes, the codes centred in their two columns. --- */
.auth__group {
  display: grid;
  gap: var(--sp-1);
}

.auth__help {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

.auth__note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-small);
  background-color: var(--c-ground);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-1);
}

.auth__note .bi {
  color: var(--c-warning-dot);
}

.auth__codes {
  font-size: var(--fs-small);
  letter-spacing: var(--tracking-caps);
  text-align: center;
}
