/* ============================================================
   AUTH-V4.CSS — skin futuriste pour connexion + inscription
   Split-screen : panel noir branding / form terminal
   Partagé entre connexion.html / inscription-client.html / inscription-pro.html
   ============================================================ */

body.v4 {
  background: #fafbf8;
  min-height: 100vh;
}
body.v4 .auth-page {
  padding: 48px 24px !important;
  position: relative;
}

body.v4 .auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,30,61,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,30,61,.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
body.v4 .auth-page > * { position: relative; z-index: 1; }

/* ---------- Auth box : carte HUD ---------- */
body.v4 .auth-box,
body.v4 .auth-card {
  background: #fff !important;
  border: 1px solid rgba(11,30,61,.18) !important;
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: 0 20px 60px rgba(11,30,61,.12) !important;
  padding: 44px 40px !important;
  max-width: 480px !important;
  width: 100%;
  position: relative;
  margin: 0 auto;
}
body.v4 .auth-box::before,
body.v4 .auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 40px;
  height: 3px;
  background: #0B1E3D;
}
body.v4 .auth-box::after,
body.v4 .auth-card::after {
  content: '// AUTH';
  position: absolute;
  top: 12px; right: 18px;
  font-family: 'Inter', monospace;
  font-size: 9.5px;
  letter-spacing: .24em;
  color: rgba(11,30,61,.35);
  text-transform: uppercase;
}

/* ---------- Logo ---------- */
body.v4 .auth-logo {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #0B1E3D !important;
  margin-bottom: 30px !important;
  gap: 12px !important;
}
body.v4 .auth-logo-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  background: #0B1E3D !important;
  color: #D4FF3A;
  font-size: 18px !important;
}

/* ---------- Titres ---------- */
body.v4 .auth-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  letter-spacing: -.015em;
  color: #0B1E3D !important;
  margin-bottom: 8px !important;
}
body.v4 .auth-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13px !important;
  color: rgba(11,30,61,.6) !important;
  margin-bottom: 32px !important;
  letter-spacing: .02em;
}

/* ---------- Bouton Google ---------- */
body.v4 .btn-google,
body.v4 .google-btn {
  background: #fff !important;
  border: 1px solid rgba(11,30,61,.15) !important;
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  padding: 14px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0B1E3D !important;
  transition: border-color .15s, background .15s, transform .15s;
  margin-bottom: 24px !important;
}
body.v4 .btn-google:hover,
body.v4 .google-btn:hover {
  border-color: #0B1E3D !important;
  background: #fafbf8 !important;
  transform: translateY(-1px);
}

/* ---------- Divider ---------- */
body.v4 .divider,
body.v4 .auth-divider {
  font-family: 'Inter', monospace !important;
  font-size: 10px !important;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(11,30,61,.4) !important;
  margin-bottom: 24px !important;
}
body.v4 .auth-divider span {
  background: #fff;
  padding: 0 12px;
  font-family: 'Inter', monospace;
}

/* ---------- Form labels + inputs ---------- */
body.v4 .auth-box .form-group,
body.v4 .auth-card .form-group { margin-bottom: 18px; }
body.v4 .auth-box .form-label,
body.v4 .auth-card .form-label {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #0B1E3D !important;
  margin-bottom: 7px !important;
}
body.v4 .auth-box .form-input,
body.v4 .auth-box input,
body.v4 .auth-box select,
body.v4 .auth-box textarea,
body.v4 .auth-card .form-input,
body.v4 .auth-card input,
body.v4 .auth-card select,
body.v4 .auth-card textarea {
  border-radius: 0 !important;
  border: 1px solid rgba(11,30,61,.18) !important;
  background: #fafbf8 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  padding: 13px 14px !important;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
body.v4 .auth-box .form-input:focus,
body.v4 .auth-box input:focus,
body.v4 .auth-box select:focus,
body.v4 .auth-box textarea:focus,
body.v4 .auth-card .form-input:focus,
body.v4 .auth-card input:focus,
body.v4 .auth-card select:focus,
body.v4 .auth-card textarea:focus {
  border-color: #0B1E3D !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(212,255,58,.3) !important;
  outline: none;
}
body.v4 .auth-box .form-error,
body.v4 .auth-card .form-error {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px !important;
  letter-spacing: .02em;
  color: #dc2626 !important;
  margin-top: 6px;
}

body.v4 #forgot-link,
body.v4 a[href='#'] {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0B1E3D !important;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(11,30,61,.3);
  padding-bottom: 2px;
}
body.v4 #forgot-link:hover { border-bottom-color: #0B1E3D; }

/* ---------- Bouton submit ---------- */
body.v4 .auth-card .btn.btn-primary,
body.v4 .auth-card .btn-primary,
body.v4 .auth-box .btn.btn-primary {
  background: #0B1E3D !important;
  color: #D4FF3A !important;
  border: 1px solid #0B1E3D !important;
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 15px !important;
  transition: background .15s, transform .15s;
}
body.v4 .auth-card .btn.btn-primary:hover,
body.v4 .auth-card .btn-primary:hover,
body.v4 .auth-box .btn.btn-primary:hover {
  background: #142d5c !important;
  transform: translateY(-1px);
}
body.v4 .auth-card .btn.btn-primary:disabled,
body.v4 .auth-card .btn-primary:disabled,
body.v4 .auth-box .btn.btn-primary:disabled {
  background: rgba(11,30,61,.4) !important;
  border-color: rgba(11,30,61,.4) !important;
  color: rgba(212,255,58,.5) !important;
  transform: none;
}

body.v4 .auth-card .btn.btn-outline,
body.v4 .auth-box .btn.btn-outline {
  background: #fff !important;
  color: #0B1E3D !important;
  border: 1px solid rgba(11,30,61,.2) !important;
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 12px !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700 !important;
}
body.v4 .auth-card .btn.btn-outline:hover,
body.v4 .auth-box .btn.btn-outline:hover {
  border-color: #0B1E3D !important;
  background: #fafbf8 !important;
}

/* ---------- Lien inscription / login alternatif ---------- */
body.v4 .auth-box a[href*='inscription-'],
body.v4 .auth-box a[href*='connexion'] {
  color: #0B1E3D !important;
  font-weight: 600;
  border-bottom: 1px solid #D4FF3A;
  padding-bottom: 1px;
  transition: background .15s;
}
body.v4 .auth-box a[href*='inscription-']:hover,
body.v4 .auth-box a[href*='connexion']:hover {
  background: rgba(212,255,58,.2);
}

/* ---------- Alertes ---------- */
body.v4 .auth-box .alert {
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  border-width: 1px !important;
  padding: 12px 14px !important;
  font-family: 'Inter', sans-serif;
  font-size: 13px !important;
}
body.v4 .auth-box .alert-error,
body.v4 .auth-box .alert-danger {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #991b1b !important;
}
body.v4 .auth-box .alert-success {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #166534 !important;
}
body.v4 .auth-box .alert-info {
  background: rgba(212,255,58,.15) !important;
  border-color: rgba(212,255,58,.6) !important;
  color: #0B1E3D !important;
}

/* ---------- Radio / checkbox pour inscription ---------- */
body.v4 .auth-box input[type='radio'],
body.v4 .auth-box input[type='checkbox'] {
  accent-color: #0B1E3D;
}

/* ---------- Stepper inscription-pro ---------- */
body.v4 .stepper {
  margin-bottom: 28px !important;
}
body.v4 .step-circle {
  width: 36px !important;
  height: 36px !important;
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  border: 1px solid rgba(11,30,61,.25) !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  background: #fff !important;
  color: rgba(11,30,61,.5) !important;
}
body.v4 .step-circle.active {
  border-color: #0B1E3D !important;
  background: #0B1E3D !important;
  color: #D4FF3A !important;
}
body.v4 .step-circle.done {
  border-color: #D4FF3A !important;
  background: #D4FF3A !important;
  color: #0B1E3D !important;
}
body.v4 .step-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(11,30,61,.5) !important;
}
body.v4 .step-label.active {
  color: #0B1E3D !important;
  font-weight: 700 !important;
}
body.v4 .step-line {
  height: 1px !important;
  background: rgba(11,30,61,.15) !important;
}
body.v4 .step-line.done {
  background: #0B1E3D !important;
}

/* ---------- Legacy steps (fallback) ---------- */
body.v4 .steps-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
body.v4 .step-pill {
  flex: 1;
  height: 4px;
  background: rgba(11,30,61,.12);
  border-radius: 0;
}
body.v4 .step-pill.active {
  background: #0B1E3D;
}
body.v4 .step-pill.done {
  background: #D4FF3A;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body.v4 .auth-page { padding: 28px 12px !important; }
  body.v4 .auth-box { padding: 28px 22px !important; }
  body.v4 .auth-title { font-size: 24px !important; }
  body.v4 .auth-subtitle { font-size: 12px !important; margin-bottom: 22px !important; }
  body.v4 .auth-box::after { font-size: 8.5px; }
}
