/* Pages connexion / inscription SANIYORO */
body.sa-auth {
  --sa-navy: #0b2a5b;
  --sa-blue: #0047ab;
  --sa-orange: #ff9100;
  --sa-orange-dark: #e67e00;
  --sa-ink: #0f172a;
  --sa-muted: #64748b;
  --sa-line: #e2e8f0;
  --sa-field: #f8fafc;
  --sa-wa: #1faa59;
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--sa-ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  padding: 0 !important;
}

.sa-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- Panneau photo ---------- */
.sa-hero {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 48px 44px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7, 26, 58, 0.55) 0%, rgba(7, 26, 58, 0.1) 30%, rgba(7, 26, 58, 0.45) 50%, rgba(7, 26, 58, 0.95) 85%),
    var(--sa-hero-img) center / cover no-repeat,
    var(--sa-navy);
  overflow: hidden;
}

.sa-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  width: fit-content;
}
.sa-logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.sa-logo strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.sa-logo small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
}

.sa-hero-body {
  max-width: 520px;
}
.sa-hero-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 14px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.sa-hero-body > p {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
}

.sa-points {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.sa-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.97rem;
}
.sa-points i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: #ffc46b;
  font-size: 1rem;
  flex-shrink: 0;
}

.sa-pay {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.sa-pay > span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}
.sa-pay-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.sa-pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.sa-pay-logo img {
  display: block;
  width: auto;
  height: 26px;
  max-width: 72px;
  object-fit: contain;
}
.sa-pay-logo--orange {
  background: linear-gradient(180deg, #fff7f0 0%, #fff 100%);
  border-color: rgba(255, 121, 0, 0.28);
}
.sa-pay-logo--moov {
  background: linear-gradient(180deg, #eef8ff 0%, #fff 100%);
  border-color: rgba(30, 136, 229, 0.28);
}
.sa-pay-logo--wave {
  background: linear-gradient(180deg, #eefbff 0%, #fff 100%);
  border-color: rgba(29, 200, 242, 0.28);
}
.sa-pay-logo--cod {
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.sa-pay-logo--cod i {
  font-size: 1rem;
  color: #ffc46b;
}

/* ---------- Zone formulaire ---------- */
.sa-main {
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 40px 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 145, 0, 0.07), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(0, 71, 171, 0.06), transparent 45%),
    #fff;
}

.sa-topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.sa-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sa-muted);
  text-decoration: none;
  font-weight: 500;
}
.sa-back:hover { color: var(--sa-blue); }
.sa-topbar-note { color: var(--sa-muted); }
.sa-topbar-note a,
.sa-switch a,
.sa-legal a {
  color: var(--sa-blue);
  font-weight: 600;
  text-decoration: none;
}
.sa-topbar-note a:hover,
.sa-switch a:hover,
.sa-legal a:hover { text-decoration: underline; }
.sa-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--sa-blue);
  font-weight: 600;
  cursor: pointer;
}
.sa-linkbtn:hover { text-decoration: underline; }
.sa-linkbtn:disabled { color: var(--sa-muted); cursor: default; text-decoration: none; }
.sa-topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--sa-line);
  color: var(--sa-ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.sa-topbar-cta:hover { border-color: var(--sa-orange); color: var(--sa-orange-dark); }

.sa-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  max-width: 420px;
  margin: auto 0;
  padding: 36px 0 24px;
}
.sa-card--wide { max-width: 540px; }

.sa-mobile-logo { display: none; }

.sa-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: 28px;
  background: #f1f5f9;
  border-radius: 12px;
}
.sa-tabs a {
  text-align: center;
  padding: 10px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sa-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sa-tabs a.is-active {
  background: #fff;
  color: var(--sa-ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.sa-head { margin-bottom: 24px; }
.sa-head h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--sa-ink);
}
.sa-head p {
  margin: 0;
  color: var(--sa-muted);
  line-height: 1.55;
}
.sa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #fff4e5;
  color: var(--sa-orange-dark);
  font-size: 0.8rem;
  font-weight: 700;
}
.sa-badge--wa { background: #e8f8ee; color: var(--sa-wa); }

.sa-steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  counter-reset: none;
}
.sa-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sa-muted);
  position: relative;
}
.sa-steps li:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  margin: 0 10px;
  background: var(--sa-line);
}
.sa-steps span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.sa-steps li.is-active { color: var(--sa-ink); }
.sa-steps li.is-active span { background: var(--sa-orange); color: #fff; }

.sa-alts {
  display: flex;
  gap: 10px;
}
.sa-alt {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--sa-line);
  background: #fff;
  color: var(--sa-ink);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.sa-alt:hover { border-color: #cbd5e1; background: var(--sa-field); }
.sa-alt--wa i { color: var(--sa-wa); font-size: 1.1rem; }
.sa-form .sa-alt { margin-bottom: 14px; }

.sa-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #94a3b8;
  font-size: 0.82rem;
}
.sa-divider::before,
.sa-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sa-line);
}

.sa-form { display: block; }
.sa-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sa-blue);
}
.sa-section:first-of-type { margin-top: 0; }
.sa-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sa-field { margin-bottom: 16px; min-width: 0; }
.sa-field label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 0.87rem;
  font-weight: 600;
  color: #334155;
}
.sa-opt {
  font-weight: 500;
  font-size: 0.78rem;
  color: #94a3b8;
}

.sa-input {
  position: relative;
  display: flex;
  align-items: center;
}
.sa-input > i {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.15s;
}
.sa-input input,
.sa-input select,
.sa-field textarea,
.sa-otp {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px 0 42px;
  border: 1.5px solid var(--sa-line);
  border-radius: 12px;
  background: var(--sa-field);
  color: var(--sa-ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.sa-input select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2394a3b8' d='M1.6 5.2 8 11.6l6.4-6.4-1.1-1.1L8 9.4 2.7 4.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.sa-field textarea {
  height: auto;
  min-height: 76px;
  padding: 12px 14px;
  resize: vertical;
}
.sa-otp {
  height: 58px;
  padding: 0 14px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.6em;
}
.sa-input input::placeholder,
.sa-field textarea::placeholder { color: #a0aec0; }
.sa-input input:focus,
.sa-input select:focus,
.sa-field textarea:focus,
.sa-otp:focus {
  border-color: var(--sa-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.1);
}
.sa-input:focus-within > i { color: var(--sa-blue); }

.sa-input.password-field input { padding-right: 48px; }
.sa-input .password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}
.sa-input .password-toggle:hover { color: var(--sa-ink); background: #eef2f7; }

.sa-submit {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--sa-orange);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 145, 0, 0.28);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.sa-submit:hover {
  background: var(--sa-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(255, 145, 0, 0.34);
}
.sa-submit:active { transform: none; }
.sa-submit i { transition: transform 0.15s; }
.sa-submit:hover i { transform: translateX(3px); }
.sa-submit--wa { background: var(--sa-wa); box-shadow: 0 8px 20px rgba(31, 170, 89, 0.25); }
.sa-submit--wa:hover { background: #178a47; box-shadow: 0 12px 26px rgba(31, 170, 89, 0.3); }

.sa-switch {
  margin: 22px 0 0;
  text-align: center;
  color: var(--sa-muted);
  font-size: 0.93rem;
}
.sa-switch + .sa-switch { margin-top: 10px; }

.sa-legal {
  max-width: 420px;
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ---------- Tablette / mobile ---------- */
@media (max-width: 960px) {
  .sa-shell { grid-template-columns: minmax(0, 1fr); }
  .sa-hero {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 20px 22px 26px;
    gap: 40px;
  }
  .sa-hero-body h2 { font-size: 1.7rem; margin-bottom: 8px; }
  .sa-hero-body > p { font-size: 0.95rem; margin-bottom: 0; }
  .sa-points { display: none; }
  .sa-pay-logos { gap: 0.4rem; }
  .sa-pay-logo img { height: 22px; max-width: 60px; }
  .sa-main { padding: 18px 20px 28px; }
  .sa-card { padding-top: 24px; }
}

@media (max-width: 560px) {
  .sa-hero { display: none; }
  .sa-mobile-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--sa-ink);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
  }
  .sa-mobile-logo img { border-radius: 10px; }
  .sa-back span { display: none; }
  .sa-back::after { content: 'Boutique'; }
  .sa-row { grid-template-columns: 1fr; gap: 0; }
  .sa-head h1 { font-size: 1.65rem; }
  .sa-steps li { font-size: 0.75rem; }
  .sa-steps li:not(.is-active) { flex: 0 0 auto; font-size: 0; gap: 0; }
  .sa-steps li.is-active { flex: 1; }
  .sa-steps li:not(:last-child)::after { margin: 0 6px; min-width: 14px; }
  .sa-topbar { font-size: 0.82rem; }
  .sa-back,
  .sa-topbar-cta { white-space: nowrap; }
  .sa-topbar-note { text-align: right; }
}
