/* ============================================================
   WISEGEN SOCIAL — auth.css
   Styles partagés pour login.html et register.html
   ============================================================ */

body.auth-body {
  background: #F3F4F6;
  min-height: 100vh;
  display: flex;
}

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

/* ── LEFT PANEL ── */
.auth-left {
  width: 50%;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}

.auth-left-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.auth-left-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(13,13,13,0.88) 0%, rgba(51,85,255,0.2) 100%);
}
.auth-left-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.auth-left-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: white;
  text-decoration: none;
}
.auth-left-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-left-headline {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 900;
  color: white;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.auth-left-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 380px;
}

/* Plans preview */
.plans-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.plan-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 14px 16px;
}
.plan-row-highlight {
  border-color: rgba(51,85,255,0.4) !important;
  background: rgba(51,85,255,0.08) !important;
}
.plan-badge {
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.plan-badge-muted {
  background: rgba(51,85,255,0.3);
  color: rgba(255,255,255,0.6);
}
.plan-row-name  { font-size: 14px; font-weight: 700; color: white; }
.plan-row-price { margin-left: auto; font-size: 14px; font-weight: 900; color: white; }

/* Social proof */
.auth-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.proof-avatars { display: flex; }
.proof-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: white;
  margin-left: -6px;
  flex-shrink: 0;
}
.proof-avatar:first-child { margin-left: 0; }
.proof-text { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; }
.proof-text strong { color: white; }

/* Features list (login) */
.auth-left-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.auth-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.auth-feat-icon {
  width: 28px;
  height: 28px;
  background: rgba(51,85,255,0.25);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Testimonial card */
.auth-testimonial {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 20px 22px;
}
.auth-ttext {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 14px;
  font-style: italic;
}
.auth-tauthor { display: flex; align-items: center; gap: 10px; }
.auth-tavatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: white;
}
.auth-tname { font-size: 13px; font-weight: 700; color: white; }
.auth-trole { font-size: 11px; color: rgba(255,255,255,0.5); }

/* ── RIGHT PANEL ── */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  overflow-y: auto;
}
.auth-box {
  width: 100%;
  max-width: 440px;
  padding: 8px 0;
}

/* Mobile logo */
.auth-mobile-logo {
  display: none;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  color: var(--dark);
  text-decoration: none;
  margin-bottom: 24px;
}
.auth-mobile-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--dark);
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 28px;
}
.auth-subtitle a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.auth-subtitle a:hover { text-decoration: underline; }

/* ── STEP INDICATOR ── */
.steps-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}
.step-dot.active {
  background: var(--blue);
  width: 24px;
  border-radius: 4px;
}
.step-dot.done { background: #16A34A; }

/* ── FORM STEPS ── */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.2s ease; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Password strength */
.pwd-strength { margin-top: 6px; display: flex; gap: 4px; }
.pwd-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s;
}
.pwd-bar.weak   { background: #DC2626; }
.pwd-bar.medium { background: #D97706; }
.pwd-bar.strong { background: #16A34A; }
.pwd-label { font-size: 11px; color: var(--gray2); margin-top: 4px; }

/* Plan selector */
.plan-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.plan-option {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.plan-option:hover { border-color: rgba(51,85,255,0.3); }
.plan-option.selected {
  border-color: var(--blue);
  background: rgba(51,85,255,0.05);
}
.plan-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.plan-option.selected .plan-radio {
  border-color: var(--blue);
  background: var(--blue);
}
.plan-option.selected .plan-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}
.plan-info { flex: 1; }
.plan-info-name  { font-size: 14px; font-weight: 800; color: var(--dark); }
.plan-info-desc  { font-size: 12px; color: var(--gray2); margin-top: 2px; }
.plan-info-price { font-size: 14px; font-weight: 900; color: var(--dark); flex-shrink: 0; }
.plan-popular {
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 6px;
}

/* Network selector */
.net-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.15s;
}
.net-btn.active {
  border-color: var(--blue);
  background: rgba(51,85,255,0.08);
  color: var(--blue);
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  background: var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-family: inherit;
}
.btn-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-back {
  width: 100%;
  padding: 12px;
  border-radius: 50px;
  background: transparent;
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  font-family: inherit;
}
.btn-back:hover {
  border-color: var(--dark);
  color: var(--dark);
}

/* Forgot link */
.forgot-link {
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  float: right;
  margin-top: -4px;
}
.forgot-link:hover { text-decoration: underline; }

/* Trial banner */
.trial-banner {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #16A34A;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

/* Footer legal */
.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--gray2);
  line-height: 1.6;
}
.auth-footer a {
  color: var(--gray2);
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .auth-left { display: none; }
  .auth-mobile-logo { display: flex; }
  .auth-right { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .auth-box { max-width: 100%; }
}
