/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  SocialFlow · Page Login GI · Skin éditorial split 50/50              ║
   ║  Sprint Unified Auth (Kevin 2026-06-05) · cohérent avec                ║
   ║  formation.graphik-impact.com + devhub.graphik-impact.com              ║
   ║                                                                       ║
   ║  Identité graphique :                                                  ║
   ║   · Outfit (display) + Zalando Sans (body) · charte GI                ║
   ║   · Noir tranché (#0A0A0B) panneau gauche · blanc pur panneau droit   ║
   ║   · Accent cyan #009FE3 (italique tagline + point signature)          ║
   ║   · Halo cyan radial bottom-right (cover-gi)                          ║
   ║   · Filets 1px uppercase tracking-22 pour eyebrows                    ║
   ║   · Inputs borderless border-b · focus border-black épaissi           ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

@font-face { font-family:'Outfit'; src:url('fonts/Outfit-Light.ttf') format('truetype'); font-weight:300; font-display:swap }
@font-face { font-family:'Outfit'; src:url('fonts/Outfit-Regular.ttf') format('truetype'); font-weight:400; font-display:swap }
@font-face { font-family:'Outfit'; src:url('fonts/Outfit-Medium.ttf') format('truetype'); font-weight:500; font-display:swap }
@font-face { font-family:'Outfit'; src:url('fonts/Outfit-SemiBold.ttf') format('truetype'); font-weight:600; font-display:swap }
@font-face { font-family:'Outfit'; src:url('fonts/Outfit-Bold.ttf') format('truetype'); font-weight:700; font-display:swap }
@font-face { font-family:'Zalando Sans'; src:url('fonts/ZalandoSans-Regular.ttf') format('truetype'); font-weight:400; font-display:swap }
@font-face { font-family:'Zalando Sans'; src:url('fonts/ZalandoSans-Italic.ttf') format('truetype'); font-weight:400; font-style:italic; font-display:swap }
@font-face { font-family:'Zalando Sans'; src:url('fonts/ZalandoSans-Medium.ttf') format('truetype'); font-weight:500; font-display:swap }
@font-face { font-family:'Zalando Sans'; src:url('fonts/ZalandoSans-SemiBold.ttf') format('truetype'); font-weight:600; font-display:swap }
@font-face { font-family:'Zalando Sans'; src:url('fonts/ZalandoSans-Bold.ttf') format('truetype'); font-weight:700; font-display:swap }

:root {
  --lg-bg: #ffffff;
  --lg-bg-dark: #0A0A0B;
  --lg-ink: #1a1a1a;
  --lg-ink-soft: #4a4a4a;
  --lg-muted: #6a6a65;
  --lg-rule: #e8e6df;
  --lg-rule-strong: #c8c6bd;
  --lg-accent: #009FE3;
  --lg-accent-hover: #0085c2;
  --lg-error: #b53a3a;
  --lg-info: #1a78c2;
  --lg-success: #1f7a3a;
  --lg-font-display: 'Outfit', system-ui, sans-serif;
  --lg-font-body: 'Zalando Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* Override global · gi.css impose html,body { overflow:hidden } pour le shell admin.
   Les pages login/setup/choose-space peuvent dépasser le viewport sur mobile · scroll requis. */
html, body.login-gi-body {
  overflow: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
}

.login-gi-body {
  background: var(--lg-bg);
  color: var(--lg-ink);
  font-family: var(--lg-font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

.login-gi-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ═══ PANNEAU GAUCHE — NOIR ÉDITORIAL ═══ */
.login-gi-left {
  position: relative;
  overflow: hidden;
  background: var(--lg-bg-dark);
  color: #fff;
  border-right: 1px solid #000;
}
.login-gi-halo {
  position: absolute;
  bottom: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,159,227,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.login-gi-left-inner {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 56px;
}

.login-gi-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--lg-font-display);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 40px;
}
.login-gi-eyebrow-line { width: 32px; height: 1px; background: rgba(255,255,255,0.4); }
.login-gi-eyebrow-dark { color: var(--lg-muted); margin-bottom: 32px; }
.login-gi-eyebrow-dark .login-gi-eyebrow-line { background: #000; }

.login-gi-brand {
  display: flex; align-items: center; gap: 12px;
}
/* Logo (favicon.svg) · pattern officiel BO + interface client · pas de carte blanche autour */
.login-gi-mark {
  width: 40px; height: 40px;
  display: block;
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  object-fit: contain;
}
/* Version fond clair (mobile branding) */
.login-gi-mark-light {
  border-color: var(--lg-rule);
}
.login-gi-brand-text { line-height: 1; }
.login-gi-app {
  font-family: var(--lg-font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.login-gi-app b { font-weight: 800; }
.login-gi-by {
  font-family: 'Zalando Sans', system-ui, sans-serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  margin: 3px 0 0;
}

.login-gi-tagline-wrap { padding: 48px 0; }
.login-gi-tagline {
  font-family: var(--lg-font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.login-gi-tagline em {
  font-family: var(--lg-font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--lg-accent);
}
.login-gi-dot { color: var(--lg-accent); }
.login-gi-lede {
  font-family: var(--lg-font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 460px;
  margin: 32px 0 0;
}

.login-gi-features {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.login-gi-features li {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.login-gi-num {
  font-family: var(--lg-font-display);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--lg-accent);
  flex-shrink: 0;
}

.login-gi-footer-left {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--lg-font-display);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.login-gi-status {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.55);
}
.login-gi-ping {
  position: relative;
  width: 6px; height: 6px;
}
.login-gi-ping span:first-child {
  position: absolute; inset: 0;
  background: #4ade80;
  border-radius: 50%;
  opacity: 0.75;
  animation: lg-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.login-gi-ping span:last-child {
  position: relative;
  display: block; width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
}
@keyframes lg-ping {
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

/* ═══ PANNEAU DROITE — BLANC ÉDITORIAL FORM ═══ */
.login-gi-right {
  display: flex; align-items: center; justify-content: center;
  padding: 56px;
  background: var(--lg-bg);
}
.login-gi-form-wrap { width: 100%; max-width: 420px; }

.login-gi-mobile-brand { display: none; }

.login-gi-title {
  font-family: var(--lg-font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--lg-ink);
  margin: 0;
}
.login-gi-sub {
  font-family: var(--lg-font-body);
  font-size: 15px;
  color: var(--lg-ink-soft);
  margin: 16px 0 0;
  line-height: 1.55;
}

.login-gi-form { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; }

.login-gi-field { position: relative; }
.login-gi-field-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.login-gi-field label {
  display: block;
  font-family: var(--lg-font-display);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lg-muted);
  margin-bottom: 8px;
}
.login-gi-field-head label { margin-bottom: 0; }
.login-gi-field input {
  width: 100%;
  font-family: var(--lg-font-body);
  font-size: 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--lg-rule-strong);
  padding: 10px 0;
  color: var(--lg-ink);
  outline: none;
  transition: border-color 200ms ease-out, border-width 200ms ease-out;
}
.login-gi-field input::placeholder { color: #c8c6bd; }
.login-gi-field input:focus {
  border-bottom: 2px solid #000;
  padding-bottom: 9px;
}

.login-gi-pwd-wrap { position: relative; }
.login-gi-pwd-toggle {
  position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer;
  color: #999;
  padding: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: color 150ms ease-out;
  z-index: 2;
}
.login-gi-pwd-toggle:hover { color: var(--lg-ink); }
/* Le svg enfant doit laisser passer le clic au bouton (sinon le handler ne match pas) */
.login-gi-pwd-toggle svg { pointer-events: none; }

.login-gi-link {
  background: none; border: 0; cursor: pointer;
  font-family: var(--lg-font-display);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lg-accent);
  border-bottom: 1px solid var(--lg-accent);
  padding: 0 0 1px 0;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}
.login-gi-link:hover { color: var(--lg-accent-hover); border-color: var(--lg-accent-hover); }

.login-gi-submit {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 18px 24px;
  background: #000; color: #fff;
  border: 0; cursor: pointer;
  font-family: var(--lg-font-display);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 200ms ease-out, transform 200ms ease-out;
}
.login-gi-submit:hover { background: var(--lg-accent); }
.login-gi-submit:hover .login-gi-arrow { transform: translateX(4px); }
.login-gi-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.login-gi-arrow { transition: transform 200ms ease-out; }

.login-gi-helper {
  font-family: var(--lg-font-body);
  font-size: 13px;
  color: var(--lg-muted);
  margin: 16px 0 0;
  text-align: center;
}
.login-gi-helper .login-gi-link { margin-left: 4px; }

.login-gi-feedback {
  font-family: var(--lg-font-body);
  font-size: 13px;
  padding: 12px 14px;
  border-left: 2px solid currentColor;
  background: rgba(0,0,0,0.02);
}
.login-gi-feedback-error { color: var(--lg-error); background: rgba(181,58,58,0.05); }
.login-gi-feedback-info { color: var(--lg-info); background: rgba(26,120,194,0.05); }
.login-gi-feedback-success { color: var(--lg-success); background: rgba(31,122,58,0.05); }

.login-gi-ssl {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--lg-rule);
  font-family: var(--lg-font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a8a89e;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .login-gi-left-inner { padding: 40px; }
  .login-gi-right { padding: 40px; }
  .login-gi-tagline-wrap { padding: 32px 0; }
}

@media (max-width: 768px) {
  .login-gi-shell { grid-template-columns: 1fr; }
  .login-gi-left { display: none; }
  .login-gi-right { padding: 48px 24px; }
  .login-gi-mobile-brand {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 40px;
  }
  .login-gi-mobile-brand .login-gi-mark { width: 36px; height: 36px; }
  .login-gi-mobile-brand .login-gi-app { color: var(--lg-ink); }
  .login-gi-mobile-brand .login-gi-by { color: var(--lg-muted); }
}
