:root{
  --bg1:#070716;
  --bg2:#0b0b22;
  --text:#e9e9ff;
  --muted:rgba(233,233,255,.65);
  --stroke:rgba(255,255,255,.08);
  --accent:#ff2b6a;
  --accent2:#7c3aed;
  --panel: rgba(15,16,40,.55);
}

/* layout page */
.auth_page{
  min-height: calc(100vh - 120px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px 16px;
}

.auth_wrap{
  width: min(1200px, 100%);
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:28px;
  align-items:stretch;
}

/* HERO */
.auth_hero{
  position:relative;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(15,16,40,.85), rgba(7,7,22,.75));
  border-radius: 24px;
  overflow:hidden;
  padding: 22px 22px 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.hero_glow{
  position:absolute; inset:-40%;
  background: conic-gradient(from 90deg,
    rgba(255,43,106,.25),
    rgba(124,58,237,.20),
    rgba(59,130,246,.12),
    rgba(255,43,106,.25));
  filter: blur(60px);
  animation: hero_spin 10s linear infinite;
  opacity:.85;
  pointer-events:none;
}
@keyframes hero_spin{ to{ transform: rotate(360deg); } }

.hero_top{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  z-index:2;
}

.brand{ display:flex; gap:12px; align-items:center; }
.brand_badge{
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,43,106,.92), rgba(124,58,237,.85));
  box-shadow: 0 12px 40px rgba(255,43,106,.18);
  font-size: 18px;
}
.brand_title{ font-weight: 900; letter-spacing:.2px; }
.brand_sub{ color:var(--muted); font-size: 13px; margin-top:2px; }

.hero_kpis{ display:flex; gap:10px; flex-wrap:wrap; }
.kpi{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  padding:10px 12px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  min-width: 90px;
  text-align:center;
}
.kpi_num{ font-weight: 900; }
.kpi_label{ color:var(--muted); font-size:12px; margin-top:2px; }

.hero_stage{
  position:relative;
  margin-top:18px;
  border-radius: 18px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  overflow:hidden;
  height: 340px;
  z-index:2;
}

/* grid images */
.hero_grid{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap:10px;
  padding: 12px;
  opacity:.55;
  transform: scale(1.02);
}
.gimg{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
.gimg img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: blur(1.6px) brightness(1.02);
  transform: scale(1.08);
  transition: .25s ease;
}
.gimg:hover img{
  filter:none;
  transform: scale(1.02);
}

/* profile cards */
.profile_card{
  position:absolute;
  width: 280px;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-radius: 18px;
  padding: 14px;
  display:flex;
  gap:12px;
  align-items:center;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  animation: float 4.5s ease-in-out infinite;
  transform: translateY(18px);
}
@keyframes float{
  0%,100%{ transform: translateY(18px); }
  50%{ transform: translateY(0px); }
}

.pc1{ left: 20px; top: 46px; animation-delay: .0s; }
.pc2{ right: 20px; top: 82px; animation-delay: .6s; }
.pc3{ left: 90px; bottom: 42px; animation-delay: 1.2s; }

.avatar_img{
  width:44px; height:44px;
  border-radius: 14px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.avatar_ph{
  width:44px; height:44px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.15);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), rgba(255,255,255,.05));
}

.pc_meta{ flex:1; }
.pc_name{ font-weight: 900; }
.pc_tag{ color:var(--muted); font-size: 12px; margin-top:3px; }
.pc_badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
}

/* floating chips */
.floating_chip{
  position:absolute;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(233,233,255,.9);
  backdrop-filter: blur(8px);
  animation: drift 8s ease-in-out infinite;
}
@keyframes drift{
  0%,100%{ transform: translate(0,0); opacity:.85; }
  50%{ transform: translate(12px,-10px); opacity:1; }
}
.c1{ left: 18px; top: 220px; animation-delay: .2s; }
.c2{ right: 18px; bottom: 20px; animation-delay: .6s; }
.c3{ left: 170px; top: 16px; animation-delay: 1s; }

/* hero copy */
.hero_bottom{ position:relative; z-index:2; margin-top: 14px; }
.hero_h1{ font-weight: 900; font-size: 22px; letter-spacing:.2px; }
.hero_p{ color:var(--muted); margin-top: 6px; line-height:1.35; max-width: 520px; }
.hero_p_soft{ color: rgba(233,233,255,.82); }

/* --- Flow animation (bandeau + stepper) --- */
.hero_flow{
  margin-top: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 12px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.flow_marquee{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  overflow:hidden;
  position:relative;
}

.flow_marquee:before,
.flow_marquee:after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 60px;
  pointer-events:none;
  z-index:2;
}
.flow_marquee:before{
  left:0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), transparent);
}
.flow_marquee:after{
  right:0;
  background: linear-gradient(270deg, rgba(0,0,0,.55), transparent);
}

.flow_track{
  display:inline-flex;
  gap: 10px;
  align-items:center;
  white-space: nowrap;
  padding: 10px 14px;
  animation: flow_scroll 22s linear infinite;
  will-change: transform;
}
@keyframes flow_scroll{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}

.flow_item{
  font-size: 13px;
  color: rgba(233,233,255,.92);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 8px 10px;
  border-radius: 999px;
}
.flow_dot{
  color: rgba(233,233,255,.35);
  padding: 0 2px;
}
.flow_spacer{ width: 28px; display:inline-block; }

.flow_steps{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.flow_step{
  flex: 1;
  min-width: 120px;
  display:flex;
  gap:10px;
  align-items:center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}

.flow_step .s{
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  font-weight: 900;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.flow_step .t{
  font-size: 13px;
  color: rgba(233,233,255,.88);
  font-weight: 900;
}

/* Effet “scanner” */
.flow_step:after{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width: 60%;
  height: 180%;
  transform: rotate(12deg);
  background: linear-gradient(90deg, transparent, rgba(255,43,106,.16), transparent);
  animation: step_scan 6s ease-in-out infinite;
  opacity: .9;
}
.flow_step:nth-child(2):after{ animation-delay: .6s; }
.flow_step:nth-child(3):after{ animation-delay: 1.2s; }
.flow_step:nth-child(4):after{ animation-delay: 1.8s; }
.flow_step:nth-child(5):after{ animation-delay: 2.4s; }

@keyframes step_scan{
  0%   { transform: translateX(0) rotate(12deg); opacity:.0; }
  15%  { opacity:.9; }
  50%  { transform: translateX(240%) rotate(12deg); opacity:.6; }
  100% { transform: translateX(240%) rotate(12deg); opacity:0; }
}

.hero_flow:hover .flow_track{ animation-play-state: paused; }

/* FORM panel */
.auth-card{
  border: 1px solid var(--stroke);
  background: rgba(15,16,40,.55);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.auth-title{
  margin:0;
  font-size: 34px;
  font-weight: 900;
}
.auth-subtitle{
  margin: 6px 0 18px;
  color: var(--muted);
}
.heart{ filter: drop-shadow(0 10px 30px rgba(255,43,106,.35)); }

.auth-alert{
  border: 1px solid rgba(255,43,106,.35);
  background: rgba(255,43,106,.10);
  color: rgba(233,233,255,.95);
  padding: 10px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.auth-form{ display:flex; flex-direction:column; gap: 14px; }
.form-group label{
  display:block;
  font-size: 13px;
  color: rgba(233,233,255,.78);
  margin-bottom: 6px;
}
.form-group input{
  width:100%;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  color: var(--text);
  outline: none;
  transition: .2s ease;
}
.form-group input:focus{
  border-color: rgba(255,43,106,.45);
  box-shadow: 0 0 0 4px rgba(255,43,106,.10);
}

.btn-primary{
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  cursor:pointer;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 18px 60px rgba(255,43,106,.18);
  display:flex;
  align-items:center;
  justify-content:space-between;
  transition: transform .15s ease, filter .15s ease;
}
.btn-primary:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary:active{ transform: translateY(0px); }

.auth-links{
  margin-top: 8px;
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.auth-link{
  color: rgba(233,233,255,.75);
  font-size: 13px;
  text-decoration:none;
  border-bottom: 1px dashed rgba(233,233,255,.25);
}
.auth-link:hover{
  color: white;
  border-bottom-color: rgba(255,43,106,.55);
}

/* responsive */
@media (max-width: 980px){
  .auth_wrap{ grid-template-columns: 1fr; }
  .hero_stage{ height: 300px; }
}


/* Image nana au-dessus du login */
.auth-girl {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 18px auto;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,.45),
    0 0 40px rgba(255,90,180,.25);
}

/* Image nana au-dessus du login – version crop */
.auth-girl {
  width: 100%;
  max-width: 420px;
  height: 240px;               /* ⬅️ HAUTEUR FIXE = PAS DE DÉBORDEMENT */
  margin: 0 auto 14px auto;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 18px 50px rgba(0,0,0,.45),
    0 0 35px rgba(255,90,180,.25);
}

.auth-girl img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* ⬅️ CROP AUTOMATIQUE */
  object-position: center 25%; /* ⬅️ FOCUS VISAGE / POITRINE */
  display: block;
}

@media (max-width: 980px){
  .auth_wrap{
    display:flex;           /* passe en flex pour utiliser order */
    flex-direction:column;
    gap:16px;
  }
  .auth-card{ order:1; }
  .auth_hero{ order:2; }
}
@media (max-width: 980px){
  .auth_hero{
    padding:16px;
  }

  /* on enlève le gros bloc qui prend toute la place */
  .hero_grid,
  .profile_card,
  .floating_chip,
  .hero_flow{
    display:none !important;
  }

  /* on garde juste le header + le texte */
  .hero_stage{
    min-height:auto !important;
    padding:0 !important;
  }
}

@media (max-width: 980px){
  .auth-girl{
    height:150px;
    border-radius:16px;
  }
  .auth-girl img{
    object-position:center 20%;
  }

  .auth-card{
    padding:18px;
  }
  .auth-title{
    font-size:28px;
    margin:0;
  }
  .auth-subtitle{
    margin:0;
  }
  .hero_stage{
    display:none !important;
  }

  /* et on resserre un peu le bas */
  .hero_bottom{
    margin-top: 8px;
  }
}
/* Boutons OAuth — base */
.btn-oauth{
  --h: 52px;
  --r: 14px;
  --shadow: 0 14px 40px rgba(0,0,0,.25);

  display:flex;
  align-items:center;
  gap:12px;
  height:var(--h);
  padding:0 16px 0 14px;
  border-radius:var(--r);
  text-decoration:none;
  font-weight:700;
  letter-spacing:.2px;
  user-select:none;

  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.10);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, border-color .12s ease;
}

.btn-oauth:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(59,130,246,.25), var(--shadow);
}

.btn-oauth:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
  border-color: rgba(255,255,255,.18);
}

.btn-oauth:active{
  transform: translateY(0px) scale(.99);
}

/* Facebook */
.btn-facebook{
  color:#fff;
  background: linear-gradient(180deg, #1877F2 0%, #0F5DD1 100%);
}

.btn-facebook .btn-oauth-icon{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.btn-facebook .btn-oauth-text{
  flex:1;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.btn-facebook .btn-oauth-arrow{
  opacity:.9;
  font-size: 18px;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 420px){
  .btn-oauth{ padding:0 12px; }
  .btn-facebook .btn-oauth-text{ font-size:14px; }
  .btn-oauth-arrow{ display:none; }
}



