/* EVO3 AUTH — overrides scoped to login/register UI without touching theme.css */

/* 1) Stop the "rose -> blanc" flicker on the login page caused by .contact-form input and color-mix */
.contact-form #mmLoginForm input{
  background: var(--theme-field-bg) !important;
  background-color: var(--theme-field-bg) !important;
  color: var(--theme-field-text) !important;
}

/* 2) Force BOTH labels (Email / Mot de passe) to share the same color/variable */
#mmLoginForm label{
  color: var(--theme-muted) !important;
}

/* 3) Keep the "Mot de passe oublié ?" link aligned to the right (if member-actions is used) */
#mmLoginForm .member-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
#mmLoginForm .member-actions__link{
  margin-left:auto;
  color: var(--theme-accent-soft);
  text-decoration:none;
}
#mmLoginForm .member-actions__link:hover{ text-decoration:underline; }

/* =========================================================
   EVO3 AUTH FIX (ref E7891C00) — v2
   - Stop flash & forced white background on login inputs
   - Keep register modal RGPD badge visible
   Portée: uniquement #mmLoginForm et #mmRegisterForm
   ========================================================= */

/* Force EXACT same field rendering as the member modal (avoid contact-form overrides) */
.contact-form #mmLoginForm .member-field input:not([type="checkbox"]):not([type="radio"]),
#mmLoginForm .member-field input:not([type="checkbox"]):not([type="radio"]){
  background: color-mix(in srgb, var(--theme-field-bg) 82%, transparent) !important;
  background-color: transparent !important;
  color: var(--theme-field-text, var(--theme-text)) !important;
}

/* Labels: consistent */
#mmLoginForm .member-field label{
  color: var(--theme-muted) !important;
}

/* Actions row */
#mmLoginForm .member-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
#mmLoginForm .member-actions__link{
  margin-left:auto;
  color: var(--theme-accent-soft);
  text-decoration:none;
}
#mmLoginForm .member-actions__link:hover{ text-decoration:underline; }

/* RGPD badge — ONLY in register form */
#mmRegisterForm .member-rgpd-inline{
  margin-top: 14px;
  display:flex;
  justify-content:center;
}
#mmRegisterForm .member-rgpd-inline img{
  height: 64px;
  width: auto;
  display:block;
  opacity: .95;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.35));
}
