/* Split auth layout: sign-in on the left, a tenant-type panel on the right.
   Layout: layout/auth_split.html. Panel: layout/partials/auth_split_panel.html.
   The panel is coloured by two CSS variables set inline from the resolved
   LoginPanel (app/core/login_panel.py):
     --tint     accent: company mark, illustration, tile icons
     --tint-bg  panel background
   The form side keeps the app's own Sneat controls and the app primary colour. */
.auth-split {
  display: grid;
  grid-template-columns: minmax(340px, 5fr) 7fr;
  min-height: 100vh;
  background: var(--bs-card-bg, #fff);
}
.auth-split-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem clamp(1.25rem, 4vw, 3.5rem);
  border-right: 1px solid var(--bs-border-color, #e6e6e8);
  min-width: 0;
}
.auth-split-left .auth-split-brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--bs-heading-color, #444050);
}
.auth-split-left .auth-split-brand img,
.auth-split-left .auth-split-brand svg { height: 34px; width: auto; flex: none; }
.auth-split-left .auth-split-mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  display: grid; place-items: center; color: #fff;
  font-weight: 700; font-size: .8125rem; background: var(--tint, #4285f4);
}
.auth-split-body { width: 100%; max-width: 22.5rem; margin: 1.5rem auto; }
.auth-split-foot { text-align: center; margin: 0; }

/* ---- right panel ---- */
.auth-split-right {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.875rem clamp(1.25rem, 3.4vw, 3rem);
  background: var(--tint-bg, #eaf1fe);
  min-width: 0;
}
.auth-split-right::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px; border-radius: 50%;
  right: -150px; top: -170px;
  background: var(--tint, #4285f4);
  opacity: .12;
}
.auth-split-right > * { position: relative; }
.auth-split-type {
  position: absolute; right: 1.25rem; top: 1rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--bs-card-bg, #fff); border: 1px solid var(--bs-border-color, #e6e6e8);
  border-radius: 20px; padding: 3px 10px; color: var(--bs-heading-color, #444050);
}
.auth-split-co {
  display: flex; align-items: center; gap: .75rem;
  width: fit-content; max-width: 100%;
  background: var(--bs-card-bg, #fff); border: 1px solid var(--bs-border-color, #e6e6e8);
  border-radius: 10px; padding: .625rem .875rem;
  box-shadow: 0 .125rem .5rem rgba(75, 70, 92, .08);
}
.auth-split-co .auth-split-mark {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; background: var(--tint, #4285f4);
}
.auth-split-co img { height: 42px; width: auto; max-width: 120px; object-fit: contain; border-radius: 6px; }
.auth-split-co b { display: block; color: var(--bs-heading-color, #444050); font-size: .9375rem; line-height: 1.25; }
.auth-split-co small { display: block; font-size: .75rem; word-break: break-all; }
.auth-split-headline {
  color: var(--bs-heading-color, #444050);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 700; line-height: 1.2; margin: 0; max-width: 18ch; text-wrap: balance;
}
.auth-split-tagline { margin: .5rem 0 0; max-width: 42ch; font-size: .9375rem; }
.auth-split-art, .auth-split-right .ill {
  width: 100%; max-width: 560px; max-height: 300px; height: auto;
  display: block; margin: 0 auto; object-fit: contain;
}
.auth-split-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; }
.auth-split-tile {
  background: var(--bs-card-bg, #fff); border: 1px solid var(--bs-border-color, #e6e6e8);
  border-radius: 10px; padding: .75rem;
}
.auth-split-tile i {
  width: 30px; height: 30px; border-radius: 8px; margin-bottom: .5rem;
  display: grid; place-items: center; font-style: normal;
  background: var(--tint-bg, #eaf1fe); color: var(--tint, #4285f4);
}
.auth-split-tile i svg { width: 17px; height: 17px; }
.auth-split-tile b { display: block; color: var(--bs-heading-color, #444050); font-size: .84375rem; }
.auth-split-tile small { display: block; font-size: .75rem; line-height: 1.35; }

/* Phone strip: replaces the right panel under 900px. */
.auth-split-strip {
  display: none; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem; background: var(--tint-bg, #eaf1fe);
  border-bottom: 1px solid var(--bs-border-color, #e6e6e8);
}
.auth-split-strip .auth-split-mark {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; background: var(--tint, #4285f4);
}
.auth-split-strip b { display: block; color: var(--bs-heading-color, #444050); }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .auth-split-right { display: none; }
  .auth-split-strip { display: flex; }
  .auth-split-left { border-right: 0; }
}
@media (max-width: 560px) {
  .auth-split-tiles { grid-template-columns: 1fr; }
}

/* Super-admin "Login page" tab: scaled live preview of the right panel. */
.lp-preview {
  zoom: .72; border: 1px solid var(--bs-border-color, #e6e6e8); border-radius: 10px; overflow: hidden;
}
.lp-preview .auth-split-right { display: flex; min-height: 560px; }
.lp-swatches { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.lp-swatches button {
  width: 28px; height: 28px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--bs-card-bg, #fff); box-shadow: 0 0 0 1px var(--bs-border-color, #e6e6e8);
}
.lp-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bs-heading-color, #444050); }
.lp-picker {
  width: 40px; height: 36px; padding: 2px; flex: none; cursor: pointer;
  border: 1px solid var(--bs-border-color, #e6e6e8); border-radius: 6px; background: var(--bs-card-bg, #fff);
}
