/* ==========================================================================
   Pages de compte (connexion, inscription)
   ========================================================================== */

.auth { padding: clamp(32px, 5vw, 72px) 0 clamp(60px, 8vw, 110px); background:
        radial-gradient(45% 55% at 85% 0%, var(--brand-100) 0%, transparent 70%),
        radial-gradient(35% 45% at 5% 20%, #eaf4ff 0%, transparent 70%), #fff; }
.auth__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }

/* Colonne gauche */
.auth__card { position: sticky; top: calc(var(--hdr-h) + 24px); padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl);
              background: var(--surface); box-shadow: var(--shadow-md), 0 0 0 1px var(--line); }
.auth__illus { width: 100%; height: auto; border-radius: var(--r-lg); margin-bottom: 24px; }
.auth__asideTitle { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.auth__asideDesc { margin-top: 8px; color: var(--muted); }
.auth__list { margin-top: 20px; display: grid; gap: 12px; }
.auth__list li { position: relative; padding-left: 30px; font-size: .95rem; color: var(--text); }
.auth__list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
                         background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c0306' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Colonne droite */
.auth__panel { padding: clamp(24px, 3vw, 44px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.auth__title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.auth__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.auth__tab { padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); background: var(--soft); transition: .2s var(--ease); }
.auth__tab:hover { color: var(--ink); }
.auth__tab.is-active { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }

.auth__form { display: flex; flex-direction: column; gap: 18px; }
.auth__form[hidden], [hidden] { display: none !important; }
.auth__form .field span { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.auth__form .field input { height: 56px; font-size: 1rem; }
.field__pw { position: relative; display: block; }
.field__pw input { width: 100%; padding-right: 56px; }
.field__eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); }
.field__eye svg { width: 22px; height: 22px; }
.field__eye:hover, .field__eye.is-on { color: var(--brand); background: var(--brand-50); }

.auth__hint { margin-top: -12px; font-size: .82rem; color: var(--muted); }
.auth__link { align-self: flex-start; font-size: .92rem; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.auth__link:hover { color: var(--brand-ink); }
.auth__submit { height: 56px; font-size: 1rem; }
.auth__submit.is-busy { opacity: .7; pointer-events: none; }
.auth__submit.is-busy::after { content: ''; width: 18px; height: 18px; margin-left: 10px; border: 2.5px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth__msg { padding: 14px 16px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand); font-size: .92rem; font-weight: 600;
             box-shadow: inset 0 0 0 1px var(--brand-200); }
.auth__msg.is-ok { background: #edfaf0; color: #147a3a; box-shadow: inset 0 0 0 1px #b9e6c8; }

.auth__foot { font-size: .95rem; color: var(--muted); }
.auth__foot a { font-weight: 700; color: var(--brand); }
.auth__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth__sep { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: .85rem; color: var(--muted); }
.auth__sep::before, .auth__sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth__soc { display: flex; align-items: center; justify-content: center; gap: 12px; height: 54px; border-radius: 999px; font-weight: 600;
             background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: .2s var(--ease); }
.auth__soc + .auth__soc { margin-top: 10px; }
.auth__soc img { width: 22px; height: 22px; }
.auth__soc:hover { box-shadow: inset 0 0 0 1.5px var(--brand-200); transform: translateY(-2px); }

.auth__others { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; }
.auth__others:empty { display: none; }
.auth__others a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.auth__others a:hover { color: var(--brand); }

@media (max-width: 1000px) {
  .auth__grid { grid-template-columns: 1fr; }
  .auth__aside { order: 2; }
  .auth__card { position: static; }
  .auth__illus { max-height: 220px; object-fit: cover; }
}

/* ---------------- Inscription ---------------- */
.auth__grid--signup { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.auth__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.auth__form .field, .auth__form input, .auth__form select { min-width: 0; }
.auth__legend { margin-top: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.auth__legend:empty { display: none; }
.field__phone { display: flex; gap: 10px; }
.field__phone input[readonly] { width: 84px; flex-shrink: 0; text-align: center; color: var(--muted); background: var(--soft); }
.field__phone input:last-child { flex: 1; min-width: 0; }
.auth__form select { height: 56px; padding: 0 44px 0 16px; border: 0; border-radius: 14px; background: var(--soft)
                     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7274' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px no-repeat;
                     font: inherit; color: var(--ink); appearance: none; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: .2s; }
.auth__form select:focus { outline: 0; background-color: var(--surface); box-shadow: inset 0 0 0 1.5px var(--brand); }
.auth__check { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; color: var(--text); cursor: pointer; }
.auth__check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); }
.auth__check a { font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.auth__foot--top { margin: -8px 0 22px; }
.auth__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.auth__badges img { height: 44px; width: auto; }
.auth__profiles { display: grid; gap: 8px; }
.auth__profiles a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px;
                    font-size: .92rem; font-weight: 600; color: var(--ink); background: var(--soft); transition: .2s var(--ease); }
.auth__profiles a:hover { background: var(--brand-50); color: var(--brand); transform: translateX(3px); }
.auth__profiles svg { width: 18px; height: 18px; color: var(--brand); }

@media (max-width: 720px) {
  .auth__row { grid-template-columns: 1fr; }
}

/* ============ Sign-up — amélioration visuelle (design) ============ */
/* Fond de page : illustration ville HOP, avec voile dégradé pour la lisibilité
   (opaque en haut -> plus transparent en bas, là où se trouve l'illustration). */
.auth { background:
  linear-gradient(to bottom, rgba(252,250,249,.92) 0%, rgba(252,250,249,.68) 42%, rgba(252,250,249,.34) 100%),
  url('/hopv2/assets/signup-bg.webp') center bottom / cover no-repeat fixed,
  var(--bg); }
@media (max-width: 1000px) { .auth { background-attachment: scroll, scroll; } }

/* Colonne gauche : panneau de marque (dégradé HOP, texte blanc) */
/* La colonne s'étire sur toute la hauteur -> le panneau peut rester pinné (sticky)
   pendant qu'on fait défiler le formulaire. */
.auth__grid--signup .auth__aside { align-self: stretch; }
.auth__grid--signup .auth__card {
  position: sticky; top: calc(var(--hdr-h, 64px) + 24px);
  color: #fff; border: 0; overflow: hidden; isolation: isolate;
  background: linear-gradient(158deg,
    color-mix(in srgb, var(--brand) 86%, #fff) 0%,
    var(--brand) 42%,
    color-mix(in srgb, var(--brand) 72%, #000) 100%);
  box-shadow: 0 26px 64px rgba(124, 6, 10, .32), inset 0 0 0 1px rgba(255,255,255,.08);
}
.auth__grid--signup .auth__card::before {
  content: ''; position: absolute; z-index: -1; right: -90px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%);
}
.auth__grid--signup .auth__asideTitle { color: #fff; }
.auth__grid--signup .auth__asideDesc { color: rgba(255,255,255,.85); line-height: 1.6; }
.auth__grid--signup .auth__sep { color: rgba(255,255,255,.72); }
.auth__grid--signup .auth__sep::before,
.auth__grid--signup .auth__sep::after { background: rgba(255,255,255,.28); }
.auth__grid--signup .auth__badges img { filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.auth__grid--signup .auth__profiles a { color: #fff; background: rgba(255,255,255,.12); }
.auth__grid--signup .auth__profiles a:hover { color: #fff; background: rgba(255,255,255,.22); }
.auth__grid--signup .auth__profiles svg { color: #fff; }

/* Colonne droite : polish du formulaire */
.auth__legend { display: flex; align-items: center; gap: 10px; }
.auth__legend::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--brand); flex-shrink: 0; }
.auth__form .field input:focus,
.auth__form select:focus { box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.auth__submit { box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 32%, transparent); }
.auth__submit:hover { transform: translateY(-2px); }
.auth__soc:hover { background: var(--brand-50); }
.g-recaptcha:empty { display: none; }   /* reCAPTCHA retiré -> pas de boîte vide */
#stCaptcha { margin: 4px 0; }

/* Argumentaire commerçant (colonne de gauche) : puces rouges */
.auth__sell { list-style: none; margin: 18px 0 20px; padding: 0; display: grid; gap: 14px; }
.auth__sell li { position: relative; padding-left: 28px; color: var(--muted); line-height: 1.5; }
.auth__sell li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }

/* Sélecteur de sous-type partenaire (Entreprise / Boutique / …) */
.auth__seg { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.auth__segBtn { flex: 1; min-width: 120px; display: flex; align-items: center; justify-content: center;
  gap: 8px; height: 46px; padding: 0 14px; border-radius: 12px; cursor: pointer; font-weight: 600;
  color: var(--muted); background: var(--soft); box-shadow: inset 0 0 0 1.5px transparent; transition: .15s; }
.auth__segBtn:hover { color: var(--text); }
.auth__segBtn.is-on { color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1.5px var(--brand); }
.auth__segBtn input { position: absolute; opacity: 0; width: 0; height: 0; }

/* ======================================================================
   Univers COMMERÇANT — sign-up?type=store : thème vert (logo HOP for Store)
   On redéfinit les variables de marque sur la page -> tous les var(--brand)
   passent au vert (en-tête, carte, formulaire, boutons). + logo + entrée animée.
   ====================================================================== */
body[data-signup="store"] {
  --brand: #2e9e0e; --brand-ink: #1f7a08; --brand-50: #eef9e9;
  --brand-100: #dcf2d1; --brand-200: #b7e6a3;
  --shadow-brand: 0 12px 28px rgba(46,158,14,.32);
}
body[data-signup="store"] .auth__grid--signup .auth__card {
  box-shadow: 0 26px 64px rgba(20,110,10,.32), inset 0 0 0 1px rgba(255,255,255,.1);
}
/* Logo en tête de la colonne gauche (tuile blanche) — centré */
.auth__logo { display: flex; justify-content: center; margin-bottom: 18px; }
.auth__logo img { width: 132px; height: auto; border-radius: 20px; background: var(--surface); padding: 8px;
  box-shadow: 0 16px 36px rgba(0,0,0,.22); transition: transform .4s var(--ease, ease); }
.auth__logo img:hover { transform: translateY(-4px) rotate(-2deg); }

/* Puces de la colonne de gauche : toujours sur une carte de marque (vert/rouge) -> blanc */
.auth__grid--signup .auth__sell li { color: rgba(255,255,255,.92); }
.auth__grid--signup .auth__sell li::before { background: var(--surface); box-shadow: 0 0 0 4px rgba(255,255,255,.22); }

/* Titre dégradé (univers rouge par défaut, chauffeur) */
body[data-signup="provider"] .auth__title { background: linear-gradient(120deg, var(--brand-ink, #6c0205), var(--brand) 60%, #e0531f);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
body[data-signup="provider"] .auth__panel { box-shadow: 0 30px 70px rgba(124,6,10,.1), 0 0 0 1px var(--line); }

/* Entrée douce des colonnes (toujours visibles à la fin — sans dépendre du JS) */
.auth__grid--signup .auth__aside { animation: authFade .6s var(--ease, ease) both; }
.auth__grid--signup .auth__panel { animation: authFade .6s var(--ease, ease) .08s both; }
@keyframes authFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .auth__grid--signup .auth__aside, .auth__grid--signup .auth__panel { animation: none; }
}

/* ---- Store : lisibilité colonne gauche + fond propre + polish « au max » ---- */
/* Puces : texte clair + marqueurs blancs (sur fond vert) */
body[data-signup="store"] .auth__sell li { color: rgba(255,255,255,.92); }
body[data-signup="store"] .auth__sell li::before { background: var(--surface); box-shadow: 0 0 0 4px rgba(255,255,255,.22); }
body[data-signup="store"] .auth__asideDesc { color: rgba(255,255,255,.9); }

/* Fond de page : wash vert doux et premium (remplace l'illustration taxi qui jurait) */
body[data-signup="store"] .auth {
  background:
    radial-gradient(55% 55% at 88% -8%, #e6f8dc 0%, transparent 72%),
    radial-gradient(48% 52% at -6% 6%, #edfbe4 0%, transparent 72%),
    linear-gradient(180deg, #fbfdf8 0%, #ffffff 58%);
}

/* Carte verte : logo mis en avant + reflet décoratif animé */
body[data-signup="store"] .auth__logo { justify-content: center; }
body[data-signup="store"] .auth__logo img { width: 140px; transition: transform .4s var(--ease, ease); }
body[data-signup="store"] .auth__logo img:hover { transform: translateY(-4px) rotate(-2deg); }
body[data-signup="store"] .auth__grid--signup .auth__card::after {
  content: ''; position: absolute; z-index: -1; top: -80px; left: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); pointer-events: none;
}

/* Formulaire : panneau un peu plus premium (store) */
body[data-signup="store"] .auth__panel { box-shadow: 0 30px 70px rgba(20,110,10,.1), 0 0 0 1px var(--line); }
body[data-signup="store"] .auth__title { background: linear-gradient(120deg, #1f7a08, #2e9e0e 60%, #7ec62a);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ======================================================================
   Inscription UTILISATEUR (sign-up?type=user) : pas de colonne de gauche,
   formulaire centré et élargi.
   ====================================================================== */
body[data-signup="user"] .auth__aside { display: none; }
body[data-signup="user"] .auth { padding-top: 14px; }   /* pas de grande marge sous l'en-tête */
body[data-signup="user"] .auth__grid--signup { grid-template-columns: minmax(0, 1fr); }
body[data-signup="user"] .auth__panel { width: 100%; }
/* Titre « S'enregistrer » + ligne « déjà un compte » centrés */
body[data-signup="user"] .auth__title,
body[data-signup="user"] .auth__foot--top { text-align: center; }

/* ======================================================================
   Inscription UTILISATEUR : animations « au max »
   ====================================================================== */
/* Entrée de la carte */
body[data-signup="user"] .auth__panel { position: relative; overflow: hidden;
  animation: authPanelIn .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes authPanelIn { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }

/* Blobs décoratifs animés derrière le formulaire */
body[data-signup="user"] .auth__panel::before,
body[data-signup="user"] .auth__panel::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(12px);
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); }
body[data-signup="user"] .auth__panel::before { width: 280px; height: 280px; top: -100px; right: -80px; animation: authBlob 11s ease-in-out infinite; }
body[data-signup="user"] .auth__panel::after { width: 220px; height: 220px; bottom: -90px; left: -70px;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, #e0531f 20%, transparent), transparent 70%); animation: authBlob 13s ease-in-out infinite reverse; }
@keyframes authBlob { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(0,-22px) scale(1.08); } }
body[data-signup="user"] .auth__panel > * { position: relative; z-index: 1; }

/* Titre : dégradé animé (shimmer) */
body[data-signup="user"] .auth__title { background: linear-gradient(100deg, var(--brand) 18%, #e0531f 50%, var(--brand) 82%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: authShine 3.6s linear infinite; }
@keyframes authShine { to { background-position: 220% center; } }

/* Champs en cascade */
body[data-signup="user"] .auth__form > * { animation: authField .55s var(--ease, ease) both; }
body[data-signup="user"] .auth__form > *:nth-child(1) { animation-delay: .10s; }
body[data-signup="user"] .auth__form > *:nth-child(2) { animation-delay: .16s; }
body[data-signup="user"] .auth__form > *:nth-child(3) { animation-delay: .22s; }
body[data-signup="user"] .auth__form > *:nth-child(4) { animation-delay: .28s; }
body[data-signup="user"] .auth__form > *:nth-child(5) { animation-delay: .34s; }
body[data-signup="user"] .auth__form > *:nth-child(6) { animation-delay: .40s; }
body[data-signup="user"] .auth__form > *:nth-child(7) { animation-delay: .46s; }
body[data-signup="user"] .auth__form > *:nth-child(8) { animation-delay: .52s; }
body[data-signup="user"] .auth__form > *:nth-child(n+9) { animation-delay: .58s; }
@keyframes authField { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Bouton : brillance au survol + relief */
body[data-signup="user"] .auth__submit { position: relative; overflow: hidden; }
body[data-signup="user"] .auth__submit::after { content: ""; position: absolute; top: 0; left: -120%; width: 65%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-18deg); }
body[data-signup="user"] .auth__submit:hover::after { animation: authSweep .75s ease; }
@keyframes authSweep { to { left: 135%; } }

@media (prefers-reduced-motion: reduce) {
  body[data-signup="user"] .auth__panel,
  body[data-signup="user"] .auth__panel::before,
  body[data-signup="user"] .auth__panel::after,
  body[data-signup="user"] .auth__title,
  body[data-signup="user"] .auth__form > * { animation: none; }
  body[data-signup="user"] .auth__title { color: var(--brand); }
}

/* ===== Connexion MOBILE : la colonne profil (illustration + description) est repliée
   derrière un bouton ℹ à droite du titre « S'identifier » ; clic -> overlay. Scopé à
   .auth__grid--signin pour ne pas toucher les pages d'inscription. ===== */
.auth__titleRow { display: flex; align-items: center; gap: 10px; }
.auth__titleRow .auth__title { min-width: 0; }
.auth__infoBtn { display: none; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--brand-50, #fdeeed); color: var(--brand); cursor: pointer; flex-shrink: 0;
  place-items: center; }
.auth__infoBtn svg { width: 19px; height: 19px; display: block; margin: auto; }
.auth__asideClose { display: none; }
@media (max-width: 1000px) {
  .auth__grid--signin .auth__aside { display: none; }
  .auth__grid--signin .auth__infoBtn { display: inline-grid; }
  /* Overlay quand ouvert via le bouton ℹ */
  .auth__grid--signin .auth__aside.is-open { display: flex; position: fixed; inset: 0; z-index: 400;
    align-items: flex-start; justify-content: center; margin: 0; order: initial;
    padding: 16px 18px 20px;   /* carte tout en haut, petite marge */
    background: rgba(10, 8, 9, .5); }
  .auth__grid--signin .auth__aside.is-open .auth__card { position: relative; width: min(440px, 100%);
    max-height: calc(100dvh - 36px); overflow-y: auto; background: var(--surface);
    border-radius: 18px; padding: 22px 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
  .auth__grid--signin .auth__aside.is-open .auth__asideClose { display: grid; place-items: center;
    position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%;
    background: var(--soft); color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
}

/* ===== Connexion MOBILE : formulaire COMPACT, aligné sur la modale de connexion
   (titre 1.5rem, champs/boutons 52px -> 48px, onglets et marges resserrés). ===== */
@media (max-width: 1000px) {
  .auth__grid--signin .auth__panel { padding: 22px 18px 24px; }
  .auth__grid--signin .auth__title { font-size: 1.5rem; }
  .auth__grid--signin .auth__infoBtn { width: 30px; height: 30px; }
  .auth__grid--signin .auth__infoBtn svg { width: 17px; height: 17px; }
  .auth__grid--signin .auth__tabs { gap: 6px; margin: 14px 0 16px; }
  .auth__grid--signin .auth__tab { padding: 8px 13px; font-size: .85rem; }
  .auth__grid--signin .auth__form { gap: 13px; }
  .auth__grid--signin .auth__form .field span { font-size: .74rem; }
  .auth__grid--signin .auth__form .field input { height: 48px; font-size: .95rem; }
  .auth__grid--signin .auth__hint { margin-top: -8px; font-size: .78rem; }
  .auth__grid--signin .auth__submit { height: 48px; font-size: .95rem; }
  .auth__grid--signin .auth__foot { font-size: .88rem; }
  .auth__grid--signin .auth__sep { margin-bottom: 10px; font-size: .82rem; }
  .auth__grid--signin .auth__soc { height: 48px; font-size: .93rem; }
  .auth__grid--signin .auth__soc img { width: 20px; height: 20px; }
}

/* ===== Connexion : les 3 onglets (Utilisateur / Chauffeur-Livreur / Marchand-Restaurant)
   sur UNE SEULE ligne, jamais de retour ; défilement horizontal invisible en secours. ===== */
.auth__grid--signin .auth__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.auth__grid--signin .auth__tabs::-webkit-scrollbar { display: none; }
.auth__grid--signin .auth__tab { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 420px) {
  .auth__grid--signin .auth__tab { padding: 7px 10px; font-size: .78rem; }
}

/* Correctif débordement : l'enfant de grid ne peut pas rétrécir sous son contenu
   (min-width:auto) -> la rangée d'onglets nowrap élargissait TOUT le panneau hors
   écran. min-width:0 = le panneau tient dans l'écran, seuls les onglets défilent. */
.auth__grid--signin .auth__panel { min-width: 0; }
.auth__grid--signin .auth__tabs { max-width: 100%; }

/* Connexion : illustration de la colonne profil fortement réduite (petite, centrée). */
.auth__grid--signin .auth__illus { width: auto; max-width: 170px; max-height: 140px;
  display: block; margin: 0 auto 14px; object-fit: contain; }
