/* /fr/login et /fr/reinitialiser — connexion, inscription, nouveau mot de passe (includes/login.php, includes/retrieve.php, assets/pages/auth.js).
   Jetons de rupteur.css (--color-ink, --color-primary) ; une colonne de 420 px, compacte, calée sur le sélecteur de quantité (.rpt-stepper de rupteur.css) : arrondi 6 px, bordure #d9d9d9, 44 px de haut. */
.rauth { --r-mut: #64748b; --r-ligne: #d9d9d9; --r-champ: #f5f5f7; --r-champ-ligne: #e4e4e7; --r-focus: rgba(24, 26, 29, .14);
  max-width: 440px; margin: 0 auto; padding: 56px 22px 40px; color: var(--color-ink, #181a1d); font-size: 16px; line-height: 1.45; box-sizing: border-box; }
.rauth *, .rauth *::before, .rauth *::after { box-sizing: border-box; }
.rauth-logo { display: block; width: 230px; max-width: 70%; margin: 0 auto 34px; }
.rauth-logo img { display: block; width: 100%; height: auto; }
.rauth-titre { margin: 0 0 22px; font-size: clamp(20px, calc((100vw - 36px) / 15.6), 25px);   /* « Se connecter ou créer un compte » sur une ligne, jusqu'au mobile */
  line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.rauth-vue[data-vue="email"] > .rauth-titre { margin-bottom: 10px; }
.rauth-intro { margin: 0 0 22px; color: #475569; font-size: 16px; line-height: 1.55; }
.rauth-centre { text-align: center; }
.rauth-texte { margin: 0 0 8px; color: #475569; line-height: 1.55; }

/* boutons Google / Apple */
.rauth-sociaux { display: grid; gap: 10px; }
.rauth-social { display: flex; align-items: center; justify-content: center; gap: 12px; height: 48px; padding: 0 18px; border: 1px solid var(--color-ink, #181a1d);
  border-radius: 6px; background: var(--color-ink, #181a1d); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: background .15s, box-shadow .15s; }
.rauth-social:hover { background: #000; }
.rauth-social:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(24, 26, 29, .3); }
.rauth-social svg { flex: none; width: 20px; height: 20px; }
.rauth-social.is-attente { opacity: .6; pointer-events: none; }
.rauth-ou { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--r-mut); font-size: 13px; }
.rauth-ou::before, .rauth-ou::after { content: ''; flex: 1; height: 1px; background: rgba(15, 23, 42, .12); }

/* formulaires */
.rauth-form { display: grid; gap: 8px; }
.rauth-label { margin-top: 6px; color: #475569; font-size: 16px; font-weight: 500; }
.rauth-form > .rauth-alerte + .rauth-label { margin-top: 2px; }
.rauth .rauth-champ { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--r-champ-ligne); border-radius: 6px; background: var(--r-champ);   /* champs du site : formcontrol.css */
  color: var(--color-ink, #181a1d); font-size: 16px; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.rauth .rauth-champ:focus { outline: none; background: #fff; border-color: var(--color-ink, #181a1d); box-shadow: 0 0 0 3px var(--r-focus); }
.rauth .rauth-champ.is-erreur { border-color: var(--color-primary, #f1283b); box-shadow: 0 0 0 3px rgba(241, 40, 59, .14); }
.rauth-mdp { position: relative; }
.rauth-mdp .rauth-champ { padding-right: 52px; }
.rauth-oeil { position: absolute; top: 50%; right: 3px; width: 42px; height: 42px; transform: translateY(-50%); display: flex; align-items: center;
  justify-content: center; border: 0; border-radius: 8px; background: none; color: var(--r-mut); cursor: pointer; }
.rauth-oeil:hover { color: var(--color-ink, #181a1d); }
.rauth-oeil i.icon { margin: 0; font-size: 17px; }
.rauth-btn { position: relative; margin-top: 6px; height: 48px; border: 0; border-radius: 6px; background: var(--color-primary, #f1283b); color: #fff;
  font-size: 17px; font-weight: 800; font-family: inherit; cursor: pointer; transition: filter .15s; }
.rauth-btn:hover { filter: brightness(.94); }
.rauth-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(241, 40, 59, .3); }
.rauth-btn:disabled { cursor: default; }
.rauth-btn.is-attente { color: transparent; }
.rauth-btn.is-attente::after { content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2.5px solid rgba(255, 255, 255, .45);
  border-top-color: #fff; border-radius: 50%; animation: rauth-tour .7s linear infinite; }
.rauth-btn.is-second { background: #fff; color: var(--color-ink, #181a1d); border: 1px solid var(--r-ligne); }
.rauth-btn.is-second:hover { filter: none; border-color: var(--color-ink, #181a1d); }
a.rauth-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
a.rauth-btn.is-second { color: var(--color-ink, #181a1d) !important; }
@keyframes rauth-tour { to { transform: rotate(360deg); } }

/* alertes (erreur, avertissement, confirmation) */
.rauth-alerte { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; padding: 12px 14px; border-radius: 6px; font-size: 15px; line-height: 1.45; }
.rauth-alerte[hidden] { display: none; }
.rauth-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }   /* prénom et nom côte à côte */
.rauth-duo > div { display: grid; gap: 8px; min-width: 0; }
.rauth-alerte-sous { margin: 6px 0 4px; }
.rauth-regles + .rauth-btn, .rauth-captcha + .rauth-btn, .rauth-coche + .rauth-btn { margin-top: 16px; }   /* bouton collé au champ, espacé d'un bloc de texte */   /* sous le champ e-mail, comme son message d'erreur */
.rauth-alerte i.icon { flex: none; margin: 1px 0 0; font-size: 17px; }
.rauth-alerte.is-erreur { background: var(--color-primary, #f1283b); color: #fff; }
.rauth-alerte.is-avert { background: #f8a531; color: #181a1d; }
.rauth-alerte.is-ok { background: #ecfdf3; color: #166534; }
.rauth-alerte-lien { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* barre des étapes d'inscription : « ← Retour » discret à gauche, « Étape n sur 2 » à droite, progression dessous */
.rauth-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.rauth-retour { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--r-mut); font: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; }
.rauth-retour:hover { color: var(--color-ink, #181a1d); }
.rauth-retour i.icon { margin: 0; font-size: 14px; }
.rauth-etape { color: var(--r-mut); font-size: 14px; }
.rauth-progres { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 22px; }
.rauth-progres i { height: 4px; border-radius: 2px; background: #e5e7eb; }
.rauth-progres i.is-fait { background: var(--color-primary, #f1283b); }
.rauth-vue:not([data-vue="email"]) > .rauth-titre { margin-bottom: 16px; font-size: clamp(20px, calc((100vw - 36px) / 16.5), 23px); }   /* titres des étapes : un cran sous celui d'accueil */

/* adresse saisie, sans cadre : avatar (création), adresse, « Modifier » (mot de passe, inscription, nouveau mot de passe) */
.rauth-qui { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.rauth-qui-avatar { flex: none; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--color-ink, #181a1d); }   /* création du compte : logo Rupteur devant l'adresse */
.rauth-qui-avatar img { display: block; width: 15px; height: auto; margin-left: 1px; }
.rauth-qui-email { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.rauth-modifier { flex: none; margin-left: 4px; padding: 0; border: 0; background: none; color: var(--color-primary, #f1283b); font: inherit; font-weight: 700; cursor: pointer; }
.rauth-modifier:hover { text-decoration: underline; text-underline-offset: 3px; }

/* petits liens : « Mot de passe oublié ? » à droite du libellé, actions de l'écran du code */
.rauth-label-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.rauth-label-ligne .rauth-label { margin-top: 0; }
.rauth-petit-lien { padding: 2px 0; border: 0; background: none; color: var(--color-ink, #181a1d); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.rauth-petit-lien:hover { color: var(--color-primary, #f1283b); }
.rauth-petit-lien:disabled { color: #94a3b8; cursor: default; }
.rauth-petit-lien[hidden] { display: none; }
.rauth-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 16px; }
.rauth-btn.is-second i.icon { margin: 0 6px 0 0; }
.rauth-btn.is-second { width: 100%; }

/* règles du mot de passe */
.rauth-regles { margin-top: 12px; font-size: 15px; }
.rauth-regles p { margin: 0 0 8px; font-weight: 700; }
.rauth-regles ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.rauth-regles li { display: flex; align-items: center; gap: 10px; color: #475569; transition: color .15s; }
.rauth-regles li::before { content: ''; flex: none; width: 16px; height: 16px; border: 1.5px solid #94a3b8; border-radius: 50%; transition: background .15s, border-color .15s; }
.rauth-regles li.is-ok { color: #15803d; }
.rauth-regles li.is-ok::before { border-color: #16a34a; background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.rauth-regles li.is-ko { color: var(--color-primary, #f1283b); }
.rauth-regles li.is-ko::before { border-color: var(--color-primary, #f1283b); }

/* code à 6 chiffres : un seul champ (autoremplissage, collage), 6 cases dessinées dessous */
.rauth-code { position: relative; display: block; margin: 4px 0 2px; cursor: text; }
.rauth-code input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; background: transparent; color: transparent; caret-color: transparent;
  font-size: 16px; opacity: .01; }
.rauth-cases { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.rauth-cases i { height: 58px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--r-ligne); border-radius: 6px; background: #fff;
  font-style: normal; font-size: 26px; font-weight: 800; transition: border-color .15s, box-shadow .15s; }
.rauth-code.is-focus .rauth-cases i.is-actif { border-color: var(--color-ink, #181a1d); box-shadow: 0 0 0 3px var(--r-focus); }
.rauth-code.is-erreur .rauth-cases i { border-color: var(--color-primary, #f1283b); }
@keyframes rauth-secoue { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.rauth-code.is-secoue .rauth-cases { animation: rauth-secoue .4s ease; }   /* code faux (auth.js, co-auth.js) */

.rauth-coche { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; color: #475569; font-size: 14px; cursor: pointer; }
.rauth-coche input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--color-ink, #181a1d); }
.rauth-captcha:not(:empty) { margin-top: 8px; }
.rauth-icone { width: 64px; height: 64px; margin: 4px auto 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #f3f3f5; font-size: 26px; }
.rauth-icone i.icon { margin: 0; }


.rauth-aide { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 34px; color: var(--r-mut) !important; font-size: 13px; }
.rauth-aide i.icon { margin: 0; }
.rauth-fermer { position: absolute; top: 18px; right: 18px; z-index: 10; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--color-ink, #181a1d) !important; font-size: 20px; }
.rauth-fermer:hover { background: #f3f3f5; }
.rauth-fermer i.icon { margin: 0; }
.rauth-langues { position: absolute; top: 26px; right: 20px; z-index: 10; display: flex; gap: 6px; }
.rauth .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 1px, 1px); white-space: nowrap; border: 0; }
.rauth-vue[hidden] { display: none; }

@media (max-width: 300px) { .rauth-duo { grid-template-columns: 1fr; } }   /* prénom et nom côte à côte jusqu'aux petits mobiles : l'inscription tient sans défiler */
@media (max-width: 480px) {
  .rauth { padding: 48px 18px 32px; }
  .rauth-cases { gap: 6px; }
  .rauth-cases i { height: 50px; font-size: 23px; }
}
