/* ============================================================
   PPC ADO — Auth CSS (Inscription / Connexion)
   ============================================================ */

.auth-page { min-height: 100vh; display: flex; }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.auth-layout {
  display: flex; width: 100%; min-height: 100vh;
}

/* Panneau gauche décoratif */
.auth-panel {
  width: 380px; flex-shrink: 0;
  background: linear-gradient(160deg, #1A0928 0%, #200E3A 50%, #14092A 100%);
  border-right: 1px solid rgba(255,110,180,0.1);
  display: flex; flex-direction: column;
  padding: 40px 36px; position: relative; overflow: hidden;
}
.auth-panel__deco {
  position: absolute; inset: 0; pointer-events: none;
}
.auth-panel__blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.25;
}
.auth-panel__blob--1 {
  width: 300px; height: 300px; top: -80px; right: -80px;
  background: radial-gradient(circle, var(--rose), transparent);
}
.auth-panel__blob--2 {
  width: 250px; height: 250px; bottom: -60px; left: -60px;
  background: radial-gradient(circle, var(--violet), transparent);
}
.auth-panel__logo { position: relative; z-index: 1; margin-bottom: 48px; }
.auth-panel__logo a { text-decoration: none; display: flex; align-items: center; gap: 4px; }

.auth-panel__content {
  position: relative; z-index: 1; flex: 1;
}
.auth-panel__title {
  font-size: 2rem; font-weight: 900; color: var(--blanc); margin-bottom: 14px;
}
.auth-panel__desc {
  font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.75;
  font-weight: 300; margin-bottom: 28px;
}
.auth-panel__perks {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.auth-panel__perks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: rgba(255,255,255,0.7);
}
.auth-panel__perks li::before {
  content: '✓'; color: var(--rose-light); font-weight: 800; flex-shrink: 0;
}

.auth-panel__footer {
  position: relative; z-index: 1;
  font-size: 0.82rem; color: rgba(255,255,255,0.3); margin-top: auto;
}
.auth-panel__footer a { color: var(--rose-light); font-weight: 600; }

/* Main content */
.auth-main {
  flex: 1; padding: 48px 40px; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: flex-start;
  max-width: 700px;
}

.auth-header { margin-bottom: 28px; }
.auth-header h1 { font-size: 1.9rem; font-weight: 900; margin-bottom: 6px; }
.auth-header p  { font-size: 0.9rem; color: var(--texte-dim); }

/* ── STEPS INDICATOR ────────────────────────────────────────── */
.steps-bar {
  display: flex; gap: 2px; margin-bottom: 32px;
  background: var(--surface); border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--bordure);
}
.step-tab {
  flex: 1; padding: 11px 10px; text-align: center;
  font-size: 0.78rem; font-weight: 700;
  color: var(--texte-mute); display: flex; align-items: center;
  justify-content: center; gap: 6px; transition: all 0.3s;
}
.step-tab__num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface3); font-size: 0.68rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; flex-shrink: 0;
}
.step-tab.active { background: rgba(255,110,180,0.12); color: var(--texte); }
.step-tab.active .step-tab__num { background: var(--grad-main); color: #fff; }
.step-tab.done   { color: var(--vert); }
.step-tab.done   .step-tab__num { background: rgba(52,211,153,0.2); color: var(--vert); }

/* ── FORM STEPS ──────────────────────────────────────────────── */
.form-step        { display: none; }
.form-step.active { display: block; }
.form-step h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 22px; }
.form-step__hint {
  font-size: 0.85rem; color: var(--texte-dim); margin-bottom: 20px;
  padding: 12px 14px; background: var(--surface2); border-radius: var(--radius-sm);
  border-left: 3px solid var(--rose);
}
.form-nav { display: flex; gap: 10px; align-items: center; margin-top: 24px; }

/* ── PHOTO UPLOAD ────────────────────────────────────────────── */
.photo-upload-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.photo-slot {
  aspect-ratio: 3/4; position: relative; border-radius: var(--radius-sm); overflow: hidden;
}
.photo-slot input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 3;
}
.photo-slot__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; border: 2px dashed rgba(255,110,180,0.2);
  border-radius: var(--radius-sm); background: var(--surface);
  color: var(--texte-mute); font-size: 0.78rem; transition: border-color 0.3s;
}
.photo-slot:hover .photo-slot__placeholder { border-color: rgba(255,110,180,0.4); }
.photo-slot__placeholder-icon { font-size: 1.8rem; }
.photo-slot__preview {
  position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-sm); overflow: hidden;
}
.photo-slot__preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot__remove {
  position: absolute; top: 6px; right: 6px; z-index: 4;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(248,113,113,0.9); color: #fff; border: none;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.65rem; font-weight: 700;
}
.photo-slot:hover .photo-slot__remove { display: flex; }
.photo-slot--main .photo-slot__placeholder::after {
  content: 'Photo principale'; font-size: 0.7rem; color: var(--rose-light);
}

/* ── INTERETS ────────────────────────────────────────────────── */
.interets-section { margin-bottom: 20px; }
.interets-section h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--texte-mute); margin-bottom: 10px;
}
.interets-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.interet-chip {
  position: relative;
}
.interet-chip input { position: absolute; opacity: 0; pointer-events: none; }
.interet-chip label {
  display: flex; align-items: center; gap: 5px; padding: 7px 13px;
  border-radius: 50px; cursor: pointer; font-size: 0.82rem; font-weight: 600;
  background: var(--surface); border: 1.5px solid var(--bordure2);
  transition: all 0.2s; user-select: none;
}
.interet-chip input:checked + label {
  background: rgba(255,110,180,0.12);
  border-color: rgba(255,110,180,0.5);
  color: var(--rose-light);
}

/* ── SUCCESS SCREEN ──────────────────────────────────────────── */
.auth-success {
  text-align: center; padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.auth-success__icon { font-size: 4rem; animation: successBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes successBounce { from{transform:scale(0)} to{transform:scale(1)} }
.auth-success h2 { font-size: 1.8rem; color: var(--blanc); }
.auth-success p  { color: var(--texte-dim); font-size: 0.9rem; max-width: 360px; line-height: 1.7; }

/* ── PAGE CONNEXION ──────────────────────────────────────────── */
.login-layout { max-width: 480px; margin: 0 auto; }
.login-layout .auth-main { max-width: 100%; padding: 40px 28px; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-layout { flex-direction: column; }
  .auth-panel  { width: 100%; padding: 28px 24px; }
  .auth-panel__blob--1, .auth-panel__blob--2 { opacity: 0.15; }
  .auth-main   { padding: 32px 20px; max-width: 100%; }
}
@media (max-width: 480px) {
  .photo-upload-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-bar .step-tab span.step-tab__label { display: none; }
}
