/* =========================================
   MLOVIA - STYLES DE CONNEXION/INSCRIPTION
   (Design 2 colonnes + 100% Responsive)
   ========================================= */

/* ── LAYOUT GLOBAL ── */
body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  background: var(--dark);
  font-family: var(--fb);
  overflow-x: hidden;
}

/* ── COLONNE GAUCHE (Formulaire) ── */
.page-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  padding: 40px 80px;
  background: var(--dark);
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.nav-brand {
  font-family: var(--fd);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}
.nav-brand em {
  font-family: var(--fs);
  color: var(--rose-h);
  font-style: normal;
  font-size: 30px;
}

.nav-back {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--grey);
  text-decoration: none;
  transition: 0.2s;
}
.nav-back:hover { color: var(--rose-l); }

/* ── ONGLETS ── */
.auth-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 30px;
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
}

.tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--grey);
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 600;
  padding: 12px 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
}

.tab.active {
  color: var(--rose-l);
}

/* Curseur rose - uniquement sous l'onglet actif */
.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
}

.progress-bar {
  max-width: 480px;
  width: 100%;
  margin: 0 auto 30px;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--rose);
  transition: width 0.4s ease;
}

/* ── CONTENEUR DU FORMULAIRE ── */
.form-card {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  display: none;
  animation: fadeIn 0.4s ease;
}
.form-card.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-title { font-family: var(--fd); font-size: 36px; font-weight: 300; line-height: 1.1; margin-bottom: 12px; }
.form-title em { font-style: italic; color: var(--rose-h); font-family: var(--fs); }
.form-sub { font-size: 13px; color: var(--grey-l); margin-bottom: 32px; font-weight: 300; line-height: 1.5; }

/* Champs de saisie */
.field { margin-bottom: 20px; position: relative; }
.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1; }
.field-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-l); margin-bottom: 8px; }
.field-input, .field-select {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); font-family: var(--fb); font-size: 14px; padding: 14px 16px;
  border-radius: 4px; outline: none; transition: 0.2s;
  -webkit-appearance: none;
}

.field-input:focus, .field-select:focus { 
  border-color: var(--rose); 
  background: rgba(217,30,91,0.05); 
}
.field-select option { background: var(--dark2); color: var(--white); }

/* ========== AUTOCOMPLETE PAYS ========== */
.country-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dark2);
  border: 1px solid rgba(217,30,91,0.3);
  border-radius: 8px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  display: none;
}

.country-suggestions .suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--grey-l);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.country-suggestions .suggestion-item:last-child {
  border-bottom: none;
}

.country-suggestions .suggestion-item:hover {
  background: rgba(217,30,91,0.15);
  color: var(--rose-l);
}

.country-suggestions .suggestion-item .country-flag {
  font-size: 18px;
}

.country-suggestions .suggestion-item .country-name {
  flex: 1;
}

.country-suggestions::-webkit-scrollbar {
  width: 6px;
}
.country-suggestions::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}
.country-suggestions::-webkit-scrollbar-thumb {
  background: var(--rose);
  border-radius: 3px;
}

/* ========== AUTOCOMPLETE LANGUES ========== */
.lang-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dark2);
  border: 1px solid rgba(217,30,91,0.3);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  display: none;
}

.lang-suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--grey-l);
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lang-suggestion-item:last-child {
  border-bottom: none;
}

.lang-suggestion-item:hover {
  background: rgba(217,30,91,0.15);
  color: var(--rose-l);
}

.lang-suggestions::-webkit-scrollbar {
  width: 6px;
}
.lang-suggestions::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}
.lang-suggestions::-webkit-scrollbar-thumb {
  background: var(--rose);
  border-radius: 3px;
}

/* Chips des langues sélectionnées */
.language-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.lang-chip {
  background: rgba(217,30,91,0.15);
  border: 1px solid rgba(217,30,91,0.3);
  color: var(--rose-l);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  transition: all 0.2s ease;
}

.lang-chip .remove-lang {
  background: none;
  border: none;
  color: var(--grey);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.lang-chip .remove-lang:hover {
  color: var(--rose);
}

.lang-hint {
  font-size: 10px;
  color: var(--grey);
  margin-top: 8px;
}

/* Mot de passe */
.field-pw { position: relative; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 16px; cursor: pointer; color: var(--grey);
}
.field-hint { font-size: 11px; color: var(--grey); margin-top: 6px; line-height: 1.4; }
.field-error { font-size: 11px; color: #e53e3e; margin-top: 6px; display: none; }
.field-input.error { border-color: #e53e3e; }
.field-input.error + .field-error { display: block; }

/* Cases à cocher & Boutons */
.terms-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.terms-check input { margin-top: 3px; accent-color: var(--rose); cursor: pointer; width: 16px; height: 16px; flex-shrink: 0; }
.terms-check label { font-size: 12px; color: var(--grey-l); line-height: 1.5; cursor: pointer; }
.terms-check a { color: var(--rose-l); text-decoration: none; font-weight: 500; }

.btn-submit {
  width: 100%; background: var(--rose); color: var(--white); border: none;
  padding: 16px; font-family: var(--fb); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em; border-radius: 4px;
  cursor: pointer; transition: 0.2s;
}
.btn-submit:hover:not(:disabled) { background: var(--rose-h); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  width: 100%; background: transparent; color: var(--grey-l); border: 1px solid rgba(255,255,255,0.2);
  padding: 16px; font-family: var(--fb); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: 4px; cursor: pointer; transition: 0.2s; margin-top: 12px;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

/* Séparateur */
.form-divider { display: flex; align-items: center; gap: 12px; margin: 30px 0; }
.form-div-line { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.form-div-text { font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.social-btn {
  width: 100%; background: var(--white); color: var(--dark); border: none;
  padding: 14px; font-family: var(--fb); font-size: 13px; font-weight: 600;
  border-radius: 4px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px;
}

/* OTP */
.otp-group { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 24px; }
.otp-input {
  flex: 1; height: 60px; min-width: 0; text-align: center; font-size: 24px; font-weight: 700;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); border-radius: 8px; outline: none; transition: 0.2s;
}
.otp-input:focus { border-color: var(--rose); background: rgba(217,30,91,0.05); }
.otp-input.filled { border-color: rgba(217,30,91,0.4); }
.otp-resend { text-align: center; font-size: 12px; color: var(--grey-l); line-height: 1.6; }
.otp-timer { font-weight: 700; color: var(--white); }
.otp-resend a { color: var(--rose-l); text-decoration: none; font-weight: 600; cursor: pointer; }

/* Intérêts */
.interests-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chip {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: var(--grey-l); padding: 8px 16px; border-radius: 20px; font-size: 12px;
  cursor: pointer; transition: 0.2s; font-family: var(--fb);
}
.interest-chip.selected { background: rgba(217,30,91,0.2); border-color: var(--rose); color: var(--rose-l); font-weight: 600; }

/* Photo */
.photo-upload {
  border: 2px dashed rgba(255,255,255,0.15); border-radius: 8px; padding: 30px;
  text-align: center; cursor: pointer; transition: 0.2s; background: rgba(255,255,255,0.02);
  margin-bottom: 16px;
}
.photo-upload:hover { border-color: var(--rose); background: rgba(217,30,91,0.05); }
.photo-upload-icon { font-size: 32px; margin-bottom: 10px; }
.photo-upload-text { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.photo-upload-sub { font-size: 11px; color: var(--grey); line-height: 1.4; }

.photo-preview { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-thumb {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
  background: rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: center;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb-add { cursor: pointer; color: var(--grey-l); font-size: 24px; border: 1px dashed rgba(255,255,255,0.2); }

/* Succès */
.success-screen { text-align: center; padding: 40px 0; }
.success-icon { font-size: 64px; display: block; margin-bottom: 24px; animation: bounce 1s infinite alternate; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.success-title { font-family: var(--fd); font-size: 36px; color: var(--white); margin-bottom: 16px; line-height: 1.1; }
.success-title em { font-style: italic; color: var(--rose-h); font-family: var(--fs); }
.success-desc { font-size: 14px; color: var(--grey-l); line-height: 1.6; margin-bottom: 32px; }

/* ========== SKELETON LOADING ========== */
#pageSkeleton {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.skeleton-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.skeleton-logo {
  width: 100px;
  height: 30px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  animation: shimmer 1.5s infinite;
}

.skeleton-back {
  width: 80px;
  height: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  animation: shimmer 1.5s infinite;
}

.skeleton-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  max-width: 480px;
  margin-inline: auto;
}

.skeleton-tab {
  flex: 1;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  animation: shimmer 1.5s infinite;
}

.skeleton-progress {
  max-width: 480px;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  margin: 0 auto 30px;
  animation: shimmer 1.5s infinite;
}

.skeleton-form {
  max-width: 480px;
  margin: 0 auto;
}

.skeleton-title {
  height: 60px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 20px;
  animation: shimmer 1.5s infinite;
}

.skeleton-field {
  height: 70px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 20px;
  animation: shimmer 1.5s infinite;
}

.skeleton-button {
  height: 52px;
  background: rgba(217,30,91,0.2);
  border-radius: 4px;
  margin: 16px 0;
  animation: shimmer 1.5s infinite;
}

.skeleton-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 30px 0;
  animation: shimmer 1.5s infinite;
}

.skeleton-social {
  height: 52px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-logo, .skeleton-back, .skeleton-tab, .skeleton-progress,
.skeleton-title, .skeleton-field, .skeleton-button, .skeleton-divider, .skeleton-social {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
}

/* COLONNE DROITE */
.page-right {
  flex: 1;
  background: linear-gradient(135deg, var(--dark2) 0%, rgba(217,30,91,0.1) 100%);
  border-left: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.right-brand { font-family: var(--fd); font-size: 64px; font-weight: 300; color: var(--white); line-height: 0.9; margin-bottom: 16px; position: relative; z-index: 2; }
.right-brand em { font-family: var(--fs); color: var(--rose-h); font-style: normal; }
.right-slogan { font-size: 12px; color: var(--grey-l); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 60px; position: relative; z-index: 2; }

.testimonials { display: flex; flex-direction: column; gap: 24px; max-width: 400px; position: relative; z-index: 10; }
.testimonial { background: rgba(13,13,20,0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.08); padding: 24px; border-radius: 12px; transition: 0.2s; }
.testimonial:hover { background: rgba(255,255,255,0.05); }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; margin-bottom: 16px; }
.t-text { font-family: var(--fd); font-size: 16px; color: var(--white); line-height: 1.6; font-style: italic; margin-bottom: 12px; }
.t-author { font-size: 11px; font-weight: 600; color: var(--grey-l); text-transform: uppercase; letter-spacing: 0.05em; }
.t-hearts { color: var(--rose); font-size: 12px; margin-top: 8px; letter-spacing: 2px; }

.right-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 60px; position: relative; z-index: 2; }
.r-badge { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--grey-l); text-transform: uppercase; }

.page-right::after {
  content: ''; position: absolute; top: -20%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(217,30,91,0.15), transparent 70%); border-radius: 50%; pointer-events: none; z-index: 1;
}
.page-right::before {
  content: ''; position: absolute; bottom: -10%; left: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.08), transparent 70%); border-radius: 50%; pointer-events: none; z-index: 1;
}

/* RESPONSIVE */
@media(max-width: 900px) {
  .page-right { display: none; }
  .page-left { padding: 40px; }
}

@media(max-width: 600px) {
  .page-left { padding: 24px 20px; }
  .top-nav { margin-bottom: 24px; }
  .form-title { font-size: 32px; }
  .field-row { flex-direction: column; gap: 0; }
  .otp-group { gap: 6px; }
  .otp-input { height: 50px; font-size: 20px; border-radius: 6px; }
  .btn-submit, .btn-ghost { padding: 14px; font-size: 11px; }
  .photo-upload { padding: 20px; }
  .country-suggestions .suggestion-item { padding: 8px 12px; font-size: 13px; }
  .lang-suggestion-item { padding: 8px 12px; font-size: 13px; }
  .lang-chip { font-size: 11px; padding: 5px 10px; }
}