/* ============================================================================
   Page « Créer un compte » (widget d'inscription d'Ultimate Addons for Elementor) — carte dans le style de la page de connexion.
   Scopé à body.ar-register (ajouté seulement si la page contient le widget) et aux classes du widget : aucun identifiant de page ni de modèle.
   Voir RegisterPage.php et register.js (qui n'ajoute que des libellés, un bouton « voir » et des phrases d'aide).
   ============================================================================ */

body.ar-register { background: linear-gradient(180deg, #e9f6f8 0, #f6fafb 340px, #f8fafc 100%) fixed; }

/* Le bandeau de titre « Créer un compte » + la vague du modèle de page : la carte porte son propre titre. */
body.ar-register .elementor-location-single .e-parent:has(.jkit-post-title) { display: none; }

/* ---------- Carte ---------- */
body.ar-register .elementor-element.elementor-widget-uael-registration-form { flex: 0 1 440px !important; width: 100% !important; max-width: 440px !important; margin-inline: auto !important; }
body.ar-register .elementor-widget-uael-registration-form > .elementor-widget-container {
    box-sizing: border-box; padding: 22px 20px 20px; background: #fff; border: 1px solid #dfe9ee; border-radius: 24px; box-shadow: 0 18px 40px -22px rgba(13, 103, 112, .35);
}
body.ar-register .elementor-element.e-con-boxed:has(> .e-con-inner > .elementor-widget-uael-registration-form) { padding-block: 28px 36px; }
body.ar-register .uael-registration-form *, body.ar-register .uael-registration-form *::before, body.ar-register .uael-registration-form *::after { box-sizing: border-box; }

.ar-reg-head { margin: 0 0 14px; }
body.ar-register .ar-reg-head .ar-reg-title { margin: 0; padding: 0; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; color: #0f172a; text-transform: none; }
body.ar-register .ar-reg-head .ar-reg-sub { margin: 5px 0 0; padding: 0; font-size: 13.5px; font-weight: 400; line-height: 1.5; color: #64748b; }

/* ---------- Champs ---------- */
body.ar-register .uael-registration-form .uael-registration-form-wrapper { display: flex; flex-wrap: wrap; row-gap: 14px; column-gap: 10px; }
body.ar-register .uael-registration-form .elementor-field-group { margin: 0 !important; padding: 0 !important; min-width: 0; }
/* Prénom et nom côte à côte, même sur téléphone (le widget les empile à 100 % sous 768 px). */
body.ar-register .uael-registration-form .elementor-field-group.elementor-col-50 { flex: 0 0 calc(50% - 5px) !important; width: calc(50% - 5px) !important; max-width: calc(50% - 5px) !important; }
body.ar-register .uael-registration-form .elementor-field-group.elementor-col-100 { flex: 0 0 100%; width: 100% !important; max-width: 100%; }
body.ar-register .uael-registration-form .elementor-field-label, body.ar-register .uael-registration-form label.ar-reg-lab {
    display: block !important; margin: 0 0 6px; padding: 0; font-size: 12.5px; font-weight: 800; line-height: 1.3; color: #334155 !important;
}
body.ar-register .uael-registration-form .elementor-field-textual {
    display: block; width: 100%; height: 50px; margin: 0; padding: 0 14px !important; border: 1.5px solid #cdd5e3 !important; border-radius: 14px !important; background: #fff !important; box-shadow: none !important;
    font-size: 16px !important; font-weight: 500; line-height: 1.2; color: #0f172a !important;
}
body.ar-register .uael-registration-form .elementor-field-textual::placeholder { color: #94a3b8; opacity: 1; }
body.ar-register .uael-registration-form .elementor-field-textual:focus { border-color: #21a9b7 !important; box-shadow: 0 0 0 3px rgba(33, 169, 183, .18) !important; outline: 0; }
body.ar-register .uael-registration-form .uael-fields-icon { display: none !important; }
body.ar-register .uael-registration-form .uael-urf-field-wrapper { position: relative; }
body.ar-register .uael-registration-form input[name="password"] { padding-right: 48px !important; }

.ar-reg-eye, .ar-reg-eye:hover, .ar-reg-eye:focus, .ar-reg-eye:active {
    position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 48px; height: 50px; min-height: 0; margin: 0; padding: 0; border: 0 !important; border-radius: 12px !important;
    background: transparent !important; box-shadow: none !important; color: #64748b !important; cursor: pointer; transform: none;
}
.ar-reg-eye svg { width: 20px; height: 20px; fill: none !important; stroke: currentColor !important; }
.ar-reg-eye svg * { fill: none !important; stroke: currentColor !important; }
.ar-reg-eye[aria-pressed="true"], .ar-reg-eye[aria-pressed="true"]:hover { color: #0d6770 !important; }
.ar-reg-eye:focus-visible { outline: 2px solid #21a9b7; outline-offset: -4px; border-radius: 12px; }

/* indicateur de robustesse du mot de passe (affiché par le widget) */
body.ar-register .uael-registration-form .uael-pass-wrapper { margin-top: 8px; }
body.ar-register .uael-registration-form .uael-pass-notice { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; line-height: 1.4; }

/* ---------- Conditions : vraie case à cocher ---------- */
body.ar-register .uael-registration-form .acceptance-field { margin: 2px 0 0; }
body.ar-register .uael-registration-form .acceptance-field .elementor-field-option { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0; }
body.ar-register .uael-registration-form .acceptance-field input[type="checkbox"] {
    position: static !important; display: block !important; flex: 0 0 auto; width: 22px !important; height: 22px !important; margin: 0 !important; opacity: 1 !important; clip: auto !important;
    accent-color: #0d6770; cursor: pointer;
}
body.ar-register .uael-registration-form .acceptance-field .checkbox-label { font-size: 13px !important; font-weight: 600; line-height: 1.45; color: #334155; }
body.ar-register .uael-registration-form .acceptance-field .checkbox-label::before, body.ar-register .uael-registration-form .acceptance-field .checkbox-label::after { display: none !important; }
.ar-reg-legal { margin: 6px 0 0 32px; font-size: 12.5px; line-height: 1.5; color: #64748b; }
.ar-reg-legal a { color: #0d6770; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
body.ar-register .uael-registration-form .uael-register-acceptance-message { display: block; margin: 6px 0 0 32px; }
body.ar-register .uael-registration-form .uael-register-error { font-size: 12.5px; font-weight: 700; line-height: 1.4; color: #be123c; }

/* ---------- Bouton ---------- */
body.ar-register .uael-registration-form .uael-reg-form-submit { margin-top: 6px; }
body.ar-register .uael-registration-form .uael-register-submit {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; padding: 0 16px; border: 0 !important; border-radius: 14px !important;
    background: #0d6770 !important; color: #fff !important; box-shadow: 0 10px 22px -12px rgba(13, 103, 112, .7); font-size: 15.5px; font-weight: 800; letter-spacing: 0; text-transform: none; cursor: pointer;
}
body.ar-register .uael-registration-form .uael-register-submit:hover, body.ar-register .uael-registration-form .uael-register-submit:focus { background: #0b5961 !important; color: #fff !important; }
body.ar-register .uael-registration-form .uael-register-submit:focus-visible { outline: 3px solid rgba(33, 169, 183, .45); outline-offset: 2px; }

/* ---------- Messages du widget (succès / erreur de l'envoi) ---------- */
body.ar-register .uael-registration-form .uael-registration-message { margin: 0 0 12px; padding: 11px 12px; border: 1px solid #fecdd3; border-radius: 14px; background: #fff1f2; font-size: 13px; font-weight: 600; line-height: 1.45; color: #9f1239; }
body.ar-register .uael-registration-form .uael-registration-message:empty { display: none !important; }
body.ar-register .uael-registration-form .uael-registration-message.success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
body.ar-register .uael-registration-form .uael-registration-message a { font-weight: 800; color: inherit; }

/* ---------- Liens « Se connecter » / « Mot de passe oublié ? » ---------- */
body.ar-register .uael-registration-form .uael-rform-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 4px; padding: 0; }
body.ar-register .uael-registration-form .uael-rform-footer-link, body.ar-register .uael-registration-form .uael-rform-footer-link:hover { margin: 0 !important; padding: 8px 4px; font-size: 14px !important; font-weight: 800; color: #0d6770 !important; text-decoration: none; }
body.ar-register .uael-registration-form .uael-rform-footer-link::before, body.ar-register .uael-registration-form .uael-rform-footer-link::after { display: none !important; content: none !important; }

.ar-reg-minors { margin: 14px 4px 0; font-size: 11.5px; line-height: 1.5; text-align: center; color: #64748b; }

@media (max-width: 800px) {
    body.ar-register .elementor-element.e-con-boxed:has(> .e-con-inner > .elementor-widget-uael-registration-form) { padding-inline: 16px; padding-block: 16px 28px; }
}

/* Panneau de marque du bureau / de la tablette (Desk\AuthDesk, inséré par desk-auth.js) : masqué sur téléphone ; desk-auth.css l'affiche au-dessus de 800 px. */
.ar-auth-brand { display: none; }
