/* The login pages (spec 9.1) in the site's look (site.css): Tabler's forms, themed
   with the ink blue, the highlighter yellow on the main action and the Alegreya
   fonts (fonts.css). */

.auth-page {
  --ink: #1e2756;
  --ink-soft: #2d3876;
  --marker: #ffd54a;
  --marker-strong: #ffc929;
  --on-ink: #fff;
  --on-ink-muted: #aeb6da;
  --tblr-body-font-family: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --tblr-body-font-size: 1.0625rem;
  --tblr-body-line-height: 1.5;
  --tblr-body-color: #1a1e33;
  --tblr-body-bg: var(--ink);
  --tblr-primary: #1e2756;
  --tblr-primary-rgb: 30, 39, 86;
  --tblr-secondary: #4b5270;
  --tblr-secondary-rgb: 75, 82, 112;
  --tblr-link-color: #1e2756;
  --tblr-link-color-rgb: 30, 39, 86;
  --tblr-link-hover-color: #2d3876;
  --tblr-link-hover-color-rgb: 45, 56, 118;
}

/* Centered, but a card taller than the screen starts at the top instead of losing it. */
.auth-page .page-center {
  justify-content: flex-start;
}

.auth-page .page-center > .container {
  margin-block: auto;
}

/* The brand, as in the site's header. */
.auth-page .auth-brand a,
.auth-page .auth-brand a:hover {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.4375rem;
  font-weight: 700;
  line-height: 1;
  color: var(--on-ink);
}

.auth-page .brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding-bottom: 0.1em;
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--marker);
  border-radius: 50%;
}

.auth-page .card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem rgb(8 12 40 / 35%);
}

.auth-page .card h1 {
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.auth-page .form-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Fields and boxes outlined at 3:1 against the card (WCAG 1.4.11). */
.auth-page .form-control,
.auth-page .form-check-input {
  border-color: #7f89b0;
}

.auth-page .form-control {
  padding: 0.625rem 1rem;
  font-size: 1.0625rem;
  line-height: 1.5rem;
}

.auth-page .form-control:focus {
  border-color: var(--ink);
}

.auth-page .form-hint,
.auth-page .small {
  font-size: 0.9375rem;
}

.auth-page .btn-primary {
  --tblr-btn-color: var(--ink);
  --tblr-btn-bg: var(--marker);
  --tblr-btn-hover-color: var(--ink);
  --tblr-btn-hover-bg: var(--marker-strong);
  --tblr-btn-active-color: var(--ink);
  --tblr-btn-active-bg: var(--marker-strong);
  --tblr-btn-disabled-color: var(--ink);
  --tblr-btn-disabled-bg: var(--marker);
  min-height: 3rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.auth-page .card .btn-link {
  font-size: 1rem;
  color: var(--ink);
}

.auth-page .card .btn-link:hover,
.auth-page .card .btn-link:focus,
.auth-page .card .btn-link:active {
  color: var(--ink-soft);
}

.auth-page :focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* Below the card, on the ink: its notes and links. */
.auth-after {
  color: var(--on-ink-muted);
}

.auth-after .text-secondary {
  color: var(--on-ink-muted) !important;
}

.auth-after a,
.auth-after .btn-link,
.auth-after .btn-link:hover,
.auth-after .btn-link:focus {
  color: var(--on-ink) !important;
}

.auth-page .auth-brand a:focus-visible,
.auth-after :focus-visible {
  outline-color: var(--marker);
}

@media (max-width: 767.98px) {
  .auth-page .card-md .card-body {
    padding: 1.75rem 1.25rem;
  }
}
