/*
 * The purple panel of /login, /register and /demarrer (client mockups,
 * 27/10/2026), and the split layout around it.
 *
 * Computer (≥ 992px): the panel is a fixed column on the left, the page content
 * centred in the rest. Phone: the panel becomes a short band above the content,
 * with the title and a single figure. The panel keeps its own colours in both
 * themes: it is the brand, not a surface of the app.
 */
.auth-split {
  --brand-panel-width: 39%;
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    repeating-radial-gradient(circle at 118% 104%, transparent 0 168px, rgba(255, 255, 255, .07) 168px 169px, transparent 169px 220px),
    radial-gradient(120% 70% at 70% 100%, rgba(116, 92, 214, .55), transparent 70%),
    linear-gradient(172deg, #141532 0%, #1b1c45 34%, #2b2768 66%, #4a3b9f 100%);
}

/* The big "S" of the mockup, behind everything. */
.brand-panel__s {
  position: absolute;
  z-index: -1;
  right: -14%;
  bottom: -26%;
  font: 800 min(118vh, 1060px)/.8 "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  color: rgba(255, 255, 255, .075);
  transform: rotate(-9deg);
  pointer-events: none;
  user-select: none;
}

.brand-panel__logo {
  display: block;
  height: 58px;
  width: auto;
  margin-left: -6px;
}

.brand-panel__title {
  margin: 0;
  font: 800 clamp(34px, 3.4vw, 48px)/1.06 "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.03em;
  color: #fff;
  max-width: 11ch;
}

.brand-panel__lead {
  margin: 26px 0 0;
  max-width: 34ch;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .78);
}

.brand-panel__stats {
  margin: 48px 0 0;
  display: grid;
  gap: 30px;
  max-width: 470px;
}

.brand-panel__stats div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}

.brand-panel__stats dt {
  font: 800 32px/1 "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.02em;
  color: #fff;
}

.brand-panel__stats dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .78);
}

.brand-panel__short {
  display: none;
}

.auth-split__main {
  position: relative;
  min-width: 0;
}

@media (min-width: 992px) {
  .auth-split {
    display: flex;
  }

  .brand-panel {
    position: sticky;
    top: 0;
    flex: 0 0 var(--brand-panel-width);
    height: 100vh;
    padding: 48px clamp(32px, 3.9vw, 56px);
  }

  .brand-panel__body {
    margin-top: clamp(40px, 10vh, 92px);
  }

  .auth-split__main {
    flex: 1 1 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
}

/* Phone and small tablet: a band above the content. */
@media (max-width: 991.98px) {
  .brand-panel {
    padding: 22px 20px 26px;
  }

  .brand-panel__s {
    right: -18%;
    bottom: -120%;
    font-size: 520px;
  }

  .brand-panel__logo {
    height: 42px;
  }

  .brand-panel__body {
    margin-top: 16px;
  }

  .brand-panel__title {
    font-size: 30px;
    max-width: 16ch;
  }

  .brand-panel__lead,
  .brand-panel__stats {
    display: none;
  }

  .brand-panel__short {
    display: block;
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .8);
  }
}

/* The questionnaire's panel (mockups 02, 2/11/2026): title and lead only, the
   shielded line at the bottom, and nothing on a phone. */
.brand-panel--plain .brand-panel__title {
  max-width: 13ch;
}

.brand-panel__note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .8);
}

.brand-panel__note svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.brand-panel__note strong {
  color: #fff;
}

@media (min-width: 992px) {
  .brand-panel {
    display: flex;
    flex-direction: column;
  }

  .brand-panel__logo {
    align-self: flex-start;
  }

  .brand-panel__note {
    margin-top: auto;
  }
}

@media (max-width: 991.98px) {
  .brand-panel__note {
    display: none;
  }
}
