/* ═══════════════════════════════════════════════════════════════════════════
   CONNEXION ET INSCRIPTION (/login, /register) — refonte d'oct. 2026
   ───────────────────────────────────────────────────────────────────────────
   Chargée APRÈS page-login.css / page-register.css et mobile.css : elle
   reprend leur apparence sans toucher au fonctionnement.

   ⚠️ LA MÉCANIQUE DE GLISSEMENT EST CONSERVÉE (style.css + auth-slide.js) : le
   panneau sombre reste un bloc ABSOLU de 50 % déplacé par `translateX`. Seule
   change sa forme : le biseau devient une carte inscrite à 16 px du bord, aux
   coins arrondis. La MÊME découpe sert aux deux sens (normal / inversé), donc
   la bascule n'a plus de forme à interpoler — elle ne fait que glisser.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Le panneau ── */
/* Fond blanc jusqu'en bas : sans lui, le papier du site apparaissait sous la page. */
body:has(.auth-split) { background: #fff; }
.auth-split { background: #fff; min-height: 100vh; min-height: 100dvh; }
.auth-split__brand,
.auth-split--inverse .auth-split__brand {
  padding: 56px 64px;
  background: #17181a;
  clip-path: inset(16px round 28px);
}
@media (prefers-reduced-motion: no-preference) {
  [data-auth-sortie] .auth-split:not(.auth-split--inverse) .auth-split__brand,
  [data-auth-sortie] .auth-split--inverse .auth-split__brand {
    clip-path: inset(16px round 28px);
  }
}
/* Ni halo ni grain : un aplat net, éclairé par le haut. */
.auth-split__brand::after { display: none; }
.auth-split__brand::before,
.auth-split--inverse .auth-split__brand::before {
  inset: 0;
  left: 0;
  right: 0;
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: radial-gradient(90% 60% at 30% 0%, rgba(255, 255, 255, .07), transparent 70%);
}

.auth-brand__header { padding-top: 8px; }
.auth-brand__logo img { height: 44px; width: auto; }

.auth-brand__body {
  flex: 1;
  justify-content: center;
  padding-block: 40px;
}
.auth-brand__title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: #fff;
}
.auth-brand__sub {
  margin-top: 14px;
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
}

/* Trois points, séparés par des filets fins. Une icône au trait par ligne, dans
   les couleurs des icônes lumineuses de l'accueil (vert, bleu, violet). */
.auth-brand__points { list-style: none; margin: 40px 0 0; padding: 0; max-width: 420px; }
.auth-pt {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.auth-pt:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.auth-pt__ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--pt) 12%, transparent);
  color: var(--pt);
}
.auth-pt--1 { --pt: #35E9A5; }
.auth-pt--2 { --pt: #19C8F2; }
.auth-pt--3 { --pt: #C45CFF; }
.auth-pt b { display: block; font-size: 1rem; font-weight: 600; color: #fff; }
.auth-pt span span { display: block; margin-top: 3px; font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .58); }

.auth-brand__pied {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}
.auth-brand__pied img { width: 76px; height: auto; }

/* ── Le formulaire ── */
.auth-split__form { background: #fff; padding: 48px 64px; }
.auth-form-inner { max-width: 380px; }

.auth-logo-mobile { display: none; }

.auth-back-link { margin-bottom: 48px; font-size: .84rem; }
.auth-form-inner h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink, #212224);
}
.auth-form-inner .sub { margin: 8px 0 32px; font-size: .95rem; color: var(--muted, #6e6b66); }
.auth-form-inner .sub a { color: var(--ink, #212224); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.field { margin-bottom: 18px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-2, #413f3c); margin-bottom: 8px; }
.field input,
.field select {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dcd7cf;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  color: var(--ink, #212224);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #a9a49d; }
.field input:hover,
.field select:hover { border-color: #c4beb5; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink, #212224);
  box-shadow: 0 0 0 4px rgba(33, 34, 36, .08);
  background: #fff;
}
.field__row { margin-bottom: 8px; }
.field__forgot { font-size: .82rem; color: var(--muted, #6e6b66); }
.field__forgot:hover { color: var(--ink, #212224); text-decoration: underline; }
.field__pw-toggle { right: 14px; }

.auth-submit {
  height: 50px;
  padding: 0 20px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--ink, #212224);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  transition: background .2s, transform .1s;
}
.auth-submit:hover { opacity: 1; transform: none; box-shadow: none; background: #000; }
.auth-submit:active { transform: scale(.99); }

.auth-divider { margin: 28px 0; font-size: .8rem; color: #a39e96; }
.auth-divider::before { background: #ece8e1; }

.alert { border-radius: 12px; padding: 12px 14px; }
.alert--success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }

.auth-devis { margin: 0; text-align: center; font-size: .88rem; color: var(--muted, #6e6b66); }
.auth-devis a { color: var(--ink, #212224); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Écran peu haut : les points se resserrent pour que le panneau tienne. */
@media (max-height: 720px) {
  .auth-brand__points { margin-top: 24px; }
  .auth-pt { padding: 12px 0; }
}

/* ── Mobile (le panneau disparaît, cf. style.css) ── */
@media (max-width: 860px) {
  .auth-split__form,
  .auth-split--inverse .auth-split__form { padding: 32px 24px 48px; align-items: flex-start; }
  .auth-logo-mobile { display: flex; width: max-content; margin-bottom: 28px; }
  .auth-back-link { display: flex; width: max-content; }
  .auth-logo-mobile img { height: 36px; width: auto; }
  .auth-back-link { margin-bottom: 28px; }
}
