/* Connexion, mot de passe, inscription — version « deux colonnes »
   (maquette docs/demos/connexion.html, 29/11/2026). Voir AD\Site\Auth_UI. */

body.adl-login,
body.adl-page {
	--o: #E26C3D; --o2: #E25822; --ink: #1E2132; --txt: #5A5A5A; --alt: #9B9C9F;
	--bg: #FAFBFD; --alt-bg: #F2F4F5; --line: #D6D9DD; --soft: rgba(226,108,61,.12); --pale: #FFF3EC;
	--grad: linear-gradient(135deg, #E26C3D, #E25822);
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background: #fff;
	color: var(--txt);
	font-family: "Maven Pro", var(--ad-font-body, system-ui), -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	display: block;
}
body.adl-login *, body.adl-login *::before, body.adl-login *::after,
body.adl-page *, body.adl-page *::before, body.adl-page *::after { box-sizing: border-box; }

.adl { display: flex; min-height: 100vh; }

/* ---------- Panneau orange ---------- */
.adl-side {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-start;
	width: 44%; max-width: 560px; flex: none;
	padding: 44px 48px;
	background: var(--grad); color: #fff;
}
.adl-side::after {
	content: ""; position: absolute; right: -90px; bottom: -60px; width: 380px; height: 460px;
	background: url(../../../../uploads/2025/07/cropped-favicon-400x512.png) center/contain no-repeat;
	opacity: .13; filter: brightness(0) invert(1); pointer-events: none;
}
.adl-brand {
	display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
	color: #fff !important; text-decoration: none !important;
	font-family: "Noto Sans", var(--ad-font-headings, inherit), sans-serif; font-weight: 700; font-size: 16px;
}
.adl-brand i {
	width: 32px; height: 38px; flex: none;
	background: url(../../../../uploads/2025/07/cropped-favicon-192x192.png) center/contain no-repeat;
	filter: brightness(0) invert(1);
}
/* Texte d'accueil placé dans le premier tiers (avant : centré verticalement, trop bas). */
.adl-pitch { position: relative; z-index: 1; margin-top: clamp(48px, 12vh, 140px); }
.adl-side h2 {
	margin: 0 0 14px; color: #fff;
	font-family: "Noto Sans", var(--ad-font-headings, inherit), sans-serif;
	font-size: 36px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800;
}
.adl-side p { margin: 0 0 26px; font-size: 17px; line-height: 1.5; opacity: .95; max-width: 420px; }
.adl-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.adl-side li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15.5px; }
.adl-side li em {
	font-style: normal; width: 38px; height: 38px; flex: none; border-radius: 6px;
	background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 18px;
}
/* Le thème force « body h2 { color: black !important } » (site.css). */
body .adl-side h2 { color: #fff !important; }
.adl-side small { margin-top: auto; padding-top: 32px; position: relative; z-index: 1; opacity: .85; font-size: 13px; }

/* ---------- Colonne formulaire ---------- */
.adl-main {
	flex: 1; min-width: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 40px 16px;
	background: #fff;
}
.adl-main > #login,
.adl-main > .adl-card,
.adl-foot { width: 100%; max-width: 400px; }
.adl-main > #login { padding: 0; margin: 0; }
.adl-login #login h1.wp-login-logo,
.adl-login #nav,
.adl-login #backtoblog,
.adl-login .privacy-policy-page-link,
.adl-login .language-switcher { display: none !important; }

.adl a { color: var(--o2); font-weight: 600; text-decoration: none; box-shadow: none; }
.adl a:hover { text-decoration: underline; color: var(--o2); }

.adl-head h1, .adl-done h1,
.adl .register-intro h1, .adl .avtr-act-box h1 {
	margin: 0 0 6px; color: var(--ink);
	font-family: "Noto Sans", var(--ad-font-headings, inherit), sans-serif;
	font-size: 25px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; text-align: left;
}
.adl-head p, .adl .register-intro p { margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: var(--txt); }
.adl-head { margin: 0; }

/* Formulaires WordPress : plus de carte, plus de flottants. */
.adl-login form,
.adl .signup-form,
.adl #register-page .signup-form {
	margin: 0 !important; padding: 0 !important;
	background: transparent !important; border: 0 !important; box-shadow: none !important;
	overflow: visible;
}
.adl label, .adl legend {
	display: block; margin: 0 0 6px; padding: 0;
	color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4;
}
.adl-login #login form p, .adl-login #login .user-pass-wrap { margin: 0 0 16px; }
.adl-login #login .forgetmenot { display: none !important; }
.adl-lrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.adl-lrow a { font-size: 13px; margin-bottom: 6px; }

.adl input[type=text], .adl input[type=email], .adl input[type=password] {
	width: 100%; min-height: 46px; margin: 0; padding: 10px 12px;
	border: 1px solid var(--line); border-radius: 6px; background: #fff;
	color: var(--ink); font: inherit; font-size: 16px; line-height: 1.3;
	box-shadow: none; outline: none;
}
.adl input[type=text]:focus, .adl input[type=email]:focus, .adl input[type=password]:focus {
	border-color: var(--o); box-shadow: 0 0 0 3px var(--soft);
}
.adl .wp-pwd { position: relative; margin: 0; }
.adl .wp-pwd .button.wp-hide-pw, .adl .wp-hide-pw {
	position: absolute; right: 6px; top: 7px; transform: none;
	width: auto; min-width: 0; height: 32px; min-height: 0; padding: 0 8px; margin: 0;
	border: 0 !important; background: transparent !important; box-shadow: none !important;
	color: var(--alt) !important; font: inherit; font-size: 13px; font-weight: 700; line-height: 32px;
	cursor: pointer;
}
.adl .wp-hide-pw:hover, .adl .wp-hide-pw:focus { color: var(--o2) !important; }
.adl .wp-hide-pw .dashicons, .adl .wp-hide-pw .text { display: none !important; }
.adl .wp-pwd input { padding-right: 82px; }

/* Captcha Cloudflare */
.adl .cf-turnstile { margin: 2px 0 18px !important; min-height: 65px; }
.adl .cf-turnstile-br { display: none; }

/* Boutons */
.adl input[type=submit], .adl .button-primary, .adl-btn, .adl .mlink-box .button {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; float: none !important; height: auto; min-height: 48px; margin: 0;
	padding: 12px 20px; border: 0; border-radius: 6px;
	background: var(--grad) !important; color: #fff !important;
	font: inherit; font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center;
	text-shadow: none; text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(226,108,61,.28); cursor: pointer;
}
.adl input[type=submit]:hover, .adl .button-primary:hover, .adl-btn:hover { filter: brightness(1.04); }
.adl input[type=submit]:disabled, .adl .button-primary:disabled, .adl-btn:disabled,
.adl .mlink-box .button:disabled {
	background: var(--alt-bg) !important; color: var(--alt) !important; box-shadow: none; cursor: default; filter: none;
}
.adl-btn--ghost, .adl .wp-generate-pw {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px;
	margin: 0; padding: 12px 20px; border: 1px solid var(--line) !important; border-radius: 6px;
	background: #fff !important; color: var(--ink) !important; box-shadow: none !important;
	font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.adl-btn--ghost:hover, .adl .wp-generate-pw:hover { border-color: var(--o) !important; filter: none; }
.adl-login p.submit { margin: 0; }

.adl-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--alt); font-size: 13px; }
.adl-or::before, .adl-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.adl-note { margin: 12px 0 0; font-size: 13px; color: var(--alt); line-height: 1.45; text-align: center; }
.adl-back { margin: 18px 0 0; font-size: 14px; }

/* Messages */
.adl-login .message, .adl-login .notice, .adl-login #login_error,
.adl .bp-feedback {
	margin: 0 0 18px; padding: 12px 14px; border: 0; border-left: 0;
	border-radius: 6px; box-shadow: none;
	background: var(--pale); color: var(--ink); font-size: 14px; line-height: 1.45;
}
.adl-login #login_error, .adl-login .notice-error, .adl .bp-feedback.error { background: #FDECEC; color: #8A1F1F; }
.adl .bp-feedback p { margin: 0; }
.adl .bp-feedback.success { background: var(--pale); }

/* Écrans « c'est envoyé » */
.adl-done { text-align: center; }
.adl-done h1 { text-align: center; }
.adl-done > p { margin: 0 0 18px; line-height: 1.5; }
.adl-ic {
	width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%;
	background: var(--pale); display: grid; place-items: center; font-size: 28px;
}
.adl-box {
	margin: 0 0 18px; padding: 12px 14px; border-radius: 6px;
	background: var(--pale); color: var(--ink); font-size: 13.5px; line-height: 1.45; text-align: left;
}
.adl-done .adl-back { text-align: center; }

/* États de /connexion/ */
.adl-login .mlink-box {
	width: 100%; margin: 0; padding: 0; border: 0; background: none; display: none;
}
.adl-login .mlink-box summary { display: none; }
.adl-login .mlink-box form { margin: 0; }
.adl-login .mlink-box label { margin-bottom: 6px; }
.adl-login .mlink-box .input { margin: 0 0 16px; }
.adl-login.adl-magic #loginform,
.adl-login.adl-magic .adl-or,
.adl-login.adl-magic [data-adl-magic],
.adl-login.adl-magic .adl-note,
.adl-login.adl-magic .adl-head:not(.adl-magic-head),
.adl-login.adl-magic .notice:not(.notice-error) { display: none !important; }
.adl-login.adl-magic .mlink-box { display: block; }
.adl-login.adl-s-magic-sent #loginform,
.adl-login.adl-s-magic-sent .adl-or,
.adl-login.adl-s-magic-sent .adl-note,
.adl-login.adl-s-magic-sent #loginform ~ [data-adl-magic] { display: none !important; }
.adl-login.adl-magic .adl-done { display: none; }
.adl-login.adl-s-lost-sent:not(.adl-resend) #lostpasswordform {
	position: absolute !important; left: -9999px; top: 0; width: 360px;
}
.adl-login.adl-s-lost-sent.adl-resend [data-adl-resend],
.adl-login.adl-s-lost-sent.adl-resend .adl-box { display: none; }
.adl-done .adl-btn--ghost { margin-bottom: 4px; }

/* Inscription : écran « Vérifie ta boîte mail » centré avec l'icône, comme la maquette */
.adl #register-page .avtr-act-box .register-intro { text-align: center; }
.adl #register-page .avtr-act-box .register-intro::before {
	content: "📬"; display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px;
	border-radius: 50%; background: var(--pale); font-size: 28px;
}
.adl #register-page .avtr-act-box .register-intro h1 { text-align: center; }
.adl #register-page .avtr-act-box > .avtr-small:not(.register-login-link) {
	margin: 0 0 18px; padding: 12px 14px; border-radius: 6px; background: var(--pale); color: var(--ink); font-size: 13.5px;
}

/* Nouveau mot de passe */
.adl-login #resetpassform .user-pass1-wrap p { margin: 0; }
.adl-login #resetpassform .wp-generate-pw,
.adl-login #resetpassform .user-pass2-wrap,
.adl-login #resetpassform .indicator-hint { display: none !important; }
.adl-login #resetpassform #pass-strength-result {
	position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
	clip: rect(0 0 0 0); margin: -1px !important; padding: 0 !important; border: 0 !important;
}
.adl-login #resetpassform .user-pass1-wrap label { margin-bottom: 6px; }
.adl-meter { height: 5px; margin: 10px 0 6px; border-radius: 3px; background: var(--alt-bg); overflow: hidden; }
.adl-meter i { display: block; height: 100%; width: 0; background: var(--o); transition: width .25s; }
.adl-meter.is-short i, .adl-meter.is-bad i { background: #C0392B; }
.adl-meter.is-good i { background: #F0A35E; }
.adl-meter-t { margin: 0 0 18px; font-size: 12.5px; color: var(--alt); line-height: 1.45; }
.adl-login #resetpassform .pw-weak { margin: -8px 0 16px; }
.adl-login .pw-weak { margin: 10px 0 0; }
.adl-login .pw-weak label { display: inline; font-weight: 500; font-size: 13.5px; }
.adl-login .indicator-hint { margin: 10px 0 16px !important; font-size: 12.5px; color: var(--alt); line-height: 1.45; }
.adl-login .reset-pass-submit { display: flex; flex-direction: column-reverse; gap: 10px; }
.adl-login .reset-pass-submit .button { float: none; }
.adl-login br.clear { display: none; }

/* ---------- Inscription (/join/, /activer/) ---------- */
body.adl-page #buddypress, body.adl-page #register-page { width: 100%; max-width: none; margin: 0; padding: 0; }
.adl #register-page .layout-wrap { display: flex; flex-direction: column; }
.adl #register-page .layout-wrap > * { order: 3; }
.adl #register-page .layout-wrap > .register-intro { order: 0; margin: 0; text-align: left; }
.adl #register-page .layout-wrap > #profile-details-section { order: 1; }
.adl #register-page .layout-wrap > #basic-details-section { order: 2; }
.adl #register-page .register-intro { text-align: left; margin: 0; }
.adl #register-page .register-section { margin: 0; padding: 0; }
.adl #register-page .extended-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.adl #register-page fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.adl #register-page .bb-signup-field,
.adl #register-page .editfield { margin: 0 0 16px; }
.adl #register-page .avtr-field-hint { display: block; margin-top: 5px; font-size: 12.5px; color: var(--alt); }
.adl #register-page .layout-wrap > p { margin: 0 0 16px; }
.adl #register-page label[for=signup_referral] input { margin-top: 6px; }
.adl-opt { font-weight: 500; color: var(--alt); font-size: 13px; }
.adl #register-page .avtr-terms { margin: 0 0 12px; }
.adl #register-page .avtr-terms label {
	display: flex; align-items: flex-start; gap: 10px; margin: 0;
	font-size: 13.5px; font-weight: 400; color: var(--txt); line-height: 1.45;
}
.adl #register-page .avtr-terms input[type=checkbox] {
	flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--o2);
}
.adl #register-page .avtr-terms span { flex: 1; }
.adl #register-page .avtr-terms--optional { margin-bottom: 18px; }
.adl-mailinfo { order: 3; margin: 0 0 12px 28px; font-size: 12.5px; line-height: 1.45; color: var(--alt); }
.adl #register-page .submit { margin: 0; padding: 0; }
.adl #register-page .register-login-link { margin: 18px 0 0; text-align: center; font-size: 14.5px; }
.adl #register-page .register-login-link.avtr-small { margin-top: 8px; font-size: 13px; color: var(--alt); }
.adl #register-page .avtr-small { font-size: 13px; color: var(--alt); }
/* Écran « Vérifie ta boîte mail » */
.adl #register-page .avtr-act-box { text-align: left; }
.adl #register-page .avtr-steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; }
.adl #register-page .avtr-steps li {
	counter-increment: s; display: flex; align-items: flex-start; gap: 12px;
	margin: 0 0 10px; font-size: 14px; line-height: 1.45;
}
.adl #register-page .avtr-steps li::before {
	content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 6px;
	background: var(--pale); color: var(--o2); font-weight: 800; font-size: 13px; display: grid; place-items: center;
}
.adl #register-page .avtr-btn-secondary,
.adl #register-page form .submit input.avtr-btn-secondary {
	background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line) !important; box-shadow: none !important;
}

/* ---------- Bas de page ---------- */
.adl-foot { margin-top: 4px; }
.adl-foot .adl-back { margin: 18px 0 0; }
.adl-join { margin: 20px 0 0; text-align: center; font-size: 14.5px; color: var(--txt); }
.adl-legal { margin: 16px 0 0; text-align: center; font-size: 12px; line-height: 1.7; color: var(--alt); }
.adl-legal a { color: var(--alt) !important; font-weight: 500; }
.adl-login.adl-s-magic-sent .adl-foot .adl-back { display: none; }

/* ---------- Téléphone ---------- */
@media (max-width: 860px) {
	.adl { flex-direction: column; }
	.adl-side { width: auto; max-width: none; padding: 22px 20px 26px; }
	.adl-side::after { width: 200px; height: 240px; right: -50px; bottom: -70px; }
	.adl-pitch { margin-top: 0; }
	.adl-side h2 { font-size: 24px; margin: 18px 0 6px; }
	.adl-side p { font-size: 15px; margin: 0; }
	.adl-side ul, .adl-side small { display: none; }
	.adl-main { justify-content: flex-start; padding: 28px 16px 40px; }
}
@media (max-width: 420px) {
	.adl #register-page .extended-profile { grid-template-columns: 1fr; }
}

/* ---------- Ajustements après comparaison avec la maquette (29/11) ---------- */
.adl #register-page .register-intro h1 { margin: 0 0 6px; }
.adl #register-page .register-intro p { margin: 0 0 22px; font-size: 15px; }
.adl #register-page .avtr-act-box .register-intro p { margin-bottom: 18px; }
.adl-btn--ghost:disabled, .adl .adl-btn--ghost:disabled {
	background: #fff !important; color: var(--ink) !important; border-color: var(--line) !important;
	box-shadow: none !important; opacity: .6; cursor: default;
}
.adl #register-page .avtr-steps li { display: block; position: relative; padding-left: 36px; min-height: 24px; }
.adl #register-page .avtr-steps li::before { position: absolute; left: 0; top: 0; }
.adl #register-page .bp-feedback, .adl .bp-feedback { border: 0 !important; box-shadow: none !important; }
.adl #register-page .bp-feedback.success { background: var(--pale); color: var(--ink); }

/* inscription.css (ad-inscription) ajoute 4px 0 16px sous chaque champ et décale l'aide : on reprend la main. */
.adl #register-page input[type=text], .adl #register-page input[type=email], .adl #register-page input[type=password] {
	margin: 0; min-height: 46px; padding: 10px 12px; border-radius: 6px; border-color: var(--line);
}
.adl #register-page .wp-pwd input[type=password], .adl #register-page .wp-pwd input[type=text] { padding-right: 82px; }
.adl #register-page input[type=text]:focus, .adl #register-page input[type=email]:focus, .adl #register-page input[type=password]:focus {
	border-color: var(--o); box-shadow: 0 0 0 3px var(--soft);
}
.adl #register-page .avtr-field-hint { margin: 5px 0 0; font-size: 12.5px; color: var(--alt); }
.adl #register-page .cf-turnstile { justify-content: flex-start; margin: 2px 0 18px !important; }
.adl #register-page .avtr-terms { margin: 0 0 12px; }
