/* ============================================================
   Kilokwa Market Place — Pages d'authentification (mobile-first)
   Connexion / Inscriptions / Récupération PIN
   ============================================================ */

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

/* ---------- Conteneur principal ---------- */
.auth-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 40px;
  width: 100%;
}

.auth-logo {
  text-align: center;
  margin-bottom: 14px;
}
.auth-logo img {
  height: 58px;
  margin: 0 auto;
}
.auth-logo .slogan {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

/* ---------- Carte ---------- */
.auth-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 20px;
  width: 100%;
  max-width: 440px;
}

.auth-card h1 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 4px;
}
.auth-card .auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 20px;
}

/* ---------- Onglets (Client / Boutique / Admin) ---------- */
.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 20px;
  gap: 4px;
}
.auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--muted);
  transition: .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-tabs a.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 3px 10px rgba(10, 46, 122, .3);
}
.auth-tabs a:not(.active):hover {
  color: var(--blue);
  background: var(--blue-light);
}

/* ---------- Champs ---------- */
.auth-card .form-group label { font-size: 13.5px; }
.auth-card .input-icon > span { color: var(--blue); opacity: .75; }

/* Préfixe téléphone +243 */
.input-prefix { display: flex; gap: 8px; align-items: stretch; }
.input-prefix .prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 15px;
  white-space: nowrap;
}
.input-prefix .form-control { flex: 1; }

/* Champ PIN */
input.pin-input {
  letter-spacing: 10px;
  font-weight: 700;
  font-size: 19px;
  text-align: center;
}

/* ---------- Liens ---------- */
.auth-links {
  text-align: center;
  margin-top: 16px;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-links a { font-weight: 600; color: var(--blue); }
.auth-links a.link-orange { color: var(--orange); }

/* ---------- Vague décorative bas de page ---------- */
.auth-wave {
  width: 100%;
  line-height: 0;
  margin-top: auto;
}
.auth-wave svg { display: block; width: 100%; height: 110px; }

/* ---------- Écrans d'étapes (forgot / confirmation) ---------- */
.auth-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.auth-steps .step-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  border: 2px solid var(--border);
}
.auth-steps .step-dot.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.auth-steps .step-dot.done {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* Sélecteur de type de compte (forgot) */
.type-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.type-choice label {
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  font-weight: 700;
  color: var(--blue);
  transition: .2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.type-choice label .ico { font-size: 26px; }
.type-choice input { display: none; }
.type-choice label:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-light);
}

/* ---------- Écran de confirmation ---------- */
.auth-success { text-align: center; padding: 10px 0; }
.auth-success .big-ico { font-size: 60px; margin-bottom: 10px; }
.auth-success h2 { font-size: 21px; margin-bottom: 8px; }
.auth-success p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

.plan-note {
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #7c3a00;
  margin: 14px 0;
  text-align: left;
}

/* ---------- Géolocalisation ---------- */
.gps-box {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.gps-box .gps-status {
  font-size: 13px;
  margin-top: 8px;
  font-weight: 600;
  color: var(--muted);
}
.gps-box .gps-status.ok { color: var(--green); }
.gps-box .gps-status.ko { color: var(--red); }

/* ---------- Aperçu logo ---------- */
.logo-preview {
  display: none;
  margin-top: 10px;
  text-align: center;
}
.logo-preview img {
  max-height: 80px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ---------- Footer auth ---------- */
.auth-footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 16px 14px;
}

@media (min-width: 520px) {
  .auth-wrap { padding-top: 44px; }
  .auth-card { padding: 30px 28px; }
  .auth-logo img { height: 70px; }
}
