/* ----------------------------------------------------------------------------
   Auth card (login + register) — one rounded card on the brand grey (#EFEDEE): logo and
   illustration on the left, welcome + form on the right. The auth layout
   forces `theme-light`, so this section is light-only.
   -------------------------------------------------------------------------- */
body:has(.axis-auth) {
  background: #efedee;
}
.axis-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: "Lato", var(--tblr-font-sans-serif);
}
.axis-auth-card {
  width: 100%;
  max-width: 70rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4.5rem 5.5rem 4.5rem 4.5rem;
  background: #fff;
  border-radius: 3rem;
  box-shadow: 0 2.5rem 5rem -1.5rem rgba(60, 50, 70, 0.25);
}
.axis-auth-art {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* Design size: 189 × 39 (the SVG's own aspect, so height follows width). */
.axis-auth-logo img {
  width: 189px;
  max-width: 100%;
  height: auto;
  display: block;
}
.axis-auth-logo-mobile {
  display: none;
}
.axis-auth-illustration {
  width: 100%;
  max-width: 30rem;
  height: auto;
  margin: 1.5rem auto 0;
}
.axis-auth-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.axis-auth-title {
  font-size: 2.25rem;
  font-weight: 400;
  color: #000;
  margin: 0 0 0.75rem;
}
.axis-auth-intro {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--neutral-600);
  margin: 0 0 2.75rem;
}
.axis-auth-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.25rem;
}
.axis-auth-tab {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--neutral-300);
  text-decoration: none;
}
.axis-auth-tab {
  transition: color 0.15s ease;
}
.axis-auth-tab:hover {
  color: var(--brand-600);
  text-decoration: none;
}
.axis-auth-tab.is-active {
  font-weight: 700;
  color: var(--brand-600);
}
.axis-auth-form .form-control {
  height: 2.75rem;
  border-radius: 0.75rem;
  border-color: var(--neutral-300);
  background-color: #fff;
  font-size: 0.9rem;
}
.axis-auth-form .form-control::placeholder {
  color: var(--neutral-400);
}
/* Focus: just the 1px border turning brand purple — no glow ring. */
.axis-auth-form .form-control:focus {
  border-color: var(--brand-600);
  box-shadow: none;
  outline: none;
}
/* Error: red 1px border only — drops Tabler's "×" icon and the right padding
   it reserved; stays red on focus so the error doesn't vanish while typing. */
.axis-auth-form .form-control.is-invalid,
.axis-auth-form .form-control.is-invalid:focus {
  border-color: var(--red-600);
  background-image: none;
  padding-right: 0.75rem;
  box-shadow: none;
}
.axis-auth-form .invalid-feedback {
  padding-left: 4px;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--red-600);
}
/* Password sits in Tabler's .input-group-flat, which adds its own focus ring
   (4px shadow on the group) and a light-blue border — both more specific
   than the rule above. Bring it in line with the other fields. */
.axis-auth-form .input-group-flat:focus-within {
  box-shadow: none;
}
/* !important only because Tabler's own `.input-group-flat:focus-within
   .form-control` rule is !important — nothing else can win against it. */
.axis-auth-form .input-group-flat:focus-within .form-control,
.axis-auth-form .input-group-flat:focus-within .input-group-text {
  border-color: var(--brand-600) !important;
}
.axis-auth-form .input-group-flat .form-control.is-invalid {
  border-color: var(--red-600) !important;
}
.axis-auth-form .input-group-flat .form-control {
  border-radius: 0.75rem;
}
/* Eye toggle (when enabled) sits inside the same rounded box as the password. */
.axis-auth-form .password-visibility-toggler:has(.input-group-text) .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.axis-auth-form .password-visibility-toggler .input-group-text {
  border-radius: 0 0.75rem 0.75rem 0;
  border-color: var(--neutral-300);
  background-color: #fff;
}
.axis-auth-remember {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin: 0 0 1.25rem;
}
.axis-auth-forgot {
  text-align: center;
  font-size: 0.8rem;
  color: var(--neutral-400);
  margin: 0 0 1rem;
}
.axis-auth-forgot a {
  font-weight: 700;
  color: var(--neutral-500);
}
.axis-auth-forgot a:hover {
  color: var(--brand-600);
}
.axis-auth-submit {
  text-align: center;
}
/* Password-reset steps: "back to login" under the form, and the success
   notice ("link sent") that replaces the form. */
.axis-auth-back {
  text-align: center;
  font-size: 0.8rem;
  margin: 1.25rem 0 0;
}
.axis-auth-back a {
  font-weight: 700;
  color: var(--neutral-500);
}
.axis-auth-back a:hover {
  color: var(--brand-600);
}
.axis-auth-status {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 0.875rem;
}
/* Register: password + confirmation side by side; stacks on narrow cards. */
.axis-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 479.98px) {
  .axis-auth-row {
    grid-template-columns: 1fr;
  }
}
/* Four fields instead of two: tighter intro gap keeps the card the login's height. */
.axis-auth-register .axis-auth-intro,
.axis-auth-reset .axis-auth-intro {
  margin-bottom: 2rem;
}
.axis-auth-submit .btn-primary {
  min-width: 12.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--brand-600);
  border-color: var(--brand-600);
  font-weight: 400;
}
.axis-auth-submit .btn-primary:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
}

@media (max-width: 991.98px) {
  .axis-auth-card {
    grid-template-columns: 1fr;
    max-width: 30rem;
    padding: 2.5rem 1.75rem;
    border-radius: 2rem;
  }
  .axis-auth-art {
    display: none;
  }
  .axis-auth-logo-mobile {
    display: block;
    margin-bottom: 2rem;
  }
}

/* Auth card — dark mode. Same layout; surfaces, text and fields follow the
   dark token ramp. The illustration is a transparent PNG, so it floats on
   the dark card exactly as on the light one. */
.axis-auth-logo .axis-auth-logo-dark {
  display: none;
}
[data-bs-theme="dark"] .axis-auth-logo .axis-auth-logo-light {
  display: none;
}
[data-bs-theme="dark"] .axis-auth-logo .axis-auth-logo-dark {
  display: block;
}
[data-bs-theme="dark"] body:has(.axis-auth) {
  background: var(--neutral-1000);
}
[data-bs-theme="dark"] .axis-auth-card {
  background: var(--neutral-900);
  box-shadow: 0 2.5rem 5rem -1.5rem rgba(0, 0, 0, 0.6);
  outline: 1px solid oklch(1 0 0 / 0.06);
}
[data-bs-theme="dark"] .axis-auth-title {
  color: var(--neutral-50);
}
[data-bs-theme="dark"] .axis-auth-intro {
  color: var(--neutral-400);
}
[data-bs-theme="dark"] .axis-auth-tab {
  color: var(--neutral-600);
}
[data-bs-theme="dark"] .axis-auth-tab:hover,
[data-bs-theme="dark"] .axis-auth-tab.is-active {
  color: var(--brand-400);
}
[data-bs-theme="dark"] .axis-auth .axis-auth-form input.form-control:not(:disabled),
[data-bs-theme="dark"] .axis-auth-form .password-visibility-toggler .input-group-text {
  background-color: var(--neutral-950);
  border-color: var(--neutral-700);
  color: var(--neutral-50);
}
[data-bs-theme="dark"] .axis-auth .axis-auth-form input.form-control:not(:disabled)::placeholder {
  color: var(--neutral-500) !important; /* Backpack's dark ::placeholder rule is !important */
}
[data-bs-theme="dark"] .axis-auth-form .form-control:focus,
[data-bs-theme="dark"] .axis-auth-form .input-group-flat:focus-within .form-control,
[data-bs-theme="dark"] .axis-auth-form .input-group-flat:focus-within .input-group-text {
  border-color: var(--brand-400) !important;
}
[data-bs-theme="dark"] .axis-auth-form .form-control.is-invalid,
[data-bs-theme="dark"] .axis-auth-form .input-group-flat .form-control.is-invalid {
  border-color: oklch(0.704 0.191 22.216) !important; /* red-400: readable on dark */
}
[data-bs-theme="dark"] .axis-auth-form .invalid-feedback {
  color: oklch(0.704 0.191 22.216);
}
[data-bs-theme="dark"] .axis-auth .axis-auth-form input.form-check-input:not(:checked) {
  background-color: var(--neutral-950);
  border-color: var(--neutral-700);
}
[data-bs-theme="dark"] .axis-auth .axis-auth-form input.form-check-input:checked {
  background-color: var(--brand-500);
  border-color: var(--brand-500);
}
[data-bs-theme="dark"] .axis-auth-remember,
[data-bs-theme="dark"] .axis-auth-forgot {
  color: var(--neutral-500);
}
[data-bs-theme="dark"] .axis-auth-forgot a,
[data-bs-theme="dark"] .axis-auth-back a {
  color: var(--neutral-300);
}
[data-bs-theme="dark"] .axis-auth-forgot a:hover,
[data-bs-theme="dark"] .axis-auth-back a:hover {
  color: var(--brand-300);
}
[data-bs-theme="dark"] .axis-auth-submit .btn-primary {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}
[data-bs-theme="dark"] .axis-auth-submit .btn-primary:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
}
[data-bs-theme="dark"] .axis-auth-status {
  background: color-mix(in oklch, var(--brand-500) 18%, transparent);
  color: var(--brand-200);
}
