/* 1.50.0 : page de connexion du portail (wp-login.php). Verre liquide, graphiques boursiers animés en fond (connexion.js).
   Couleurs et polices du logiciel (app.css). Sélecteurs précédés de body.login : ils passent devant login.css. */
@font-face { font-family: "Albert Sans"; font-weight: 400; font-display: swap; src: url("fonts/albert-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 500; font-display: swap; src: url("fonts/albert-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 600; font-display: swap; src: url("fonts/albert-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 700; font-display: swap; src: url("fonts/albert-sans-latin-700-normal.woff2") format("woff2"); }
:root {
	--profond: #0A4834; --emeraude: #0B7A55; --vif: #12A872; --menthe: #5ED3A6;
	--or: #D4A24E; --or-fonce: #A87D35; --corail: #E2725B;
	--texte: #1D1D1F; --texte-2: #55595E; --fond: #F2F5F2;
	--focus: 0 0 0 4px rgba(18, 168, 114, .28);
	--ressort: cubic-bezier(.2, .9, .25, 1.05);
}
html { background: var(--fond); }
body.login {
	min-height: 100vh; font: 400 15px/1.45 "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texte);
	background: radial-gradient(1200px 700px at 12% -10%, rgba(94, 211, 166, .38), transparent 60%),
		radial-gradient(900px 600px at 105% 110%, rgba(212, 162, 78, .22), transparent 60%),
		radial-gradient(700px 500px at 90% 5%, rgba(18, 168, 114, .16), transparent 65%), var(--fond);
	background-attachment: fixed; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
/* ------------------------------------------------------------------ décor */
#sgp-marches { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
.sgp-voile { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(520px 420px at 50% 45%, rgba(242, 245, 242, .55), rgba(242, 245, 242, 0) 70%); }
.sgp-pastilles { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.sgp-pastille { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border-radius: 14px; font-size: 12.5px; font-weight: 600; color: #34403A; animation: sgp-flotte 9s ease-in-out infinite alternate; }
.sgp-pastille .sgp-verre { position: absolute; inset: 0; border-radius: inherit; z-index: -1; }
.sgp-pastille svg { width: 54px; height: 20px; }
.sgp-pastille .hausse { color: #08754F; } .sgp-pastille .baisse { color: #B4462F; }
@keyframes sgp-flotte { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
@media (max-width: 760px) { .sgp-pastille.loin { display: none; } }
@media (max-width: 480px) { .sgp-pastille { display: none; } }

/* ------------------------------------------------------------------ mise en page */
body.login #login { position: relative; z-index: 2; width: min(400px, calc(100% - 32px)); margin: 0 auto; padding: max(7vh, 32px) 0 32px; }
body.login .screen-reader-text + #login { padding-top: max(7vh, 32px); }
body.login #login h1 { margin: 0 0 22px; display: flex; justify-content: center; }
body.login #login h1 a {
	/* sans le script : nom du cabinet sous le logo */
	width: auto; height: auto; margin: 0; padding: 4px 6px; text-indent: 0; overflow: visible; background: none;
	display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--profond); border-radius: 18px;
	font: 400 24px/1.1 Georgia, "Times New Roman", serif; outline: none;
}
body.login #login h1 a:focus-visible { box-shadow: var(--focus); }
body.login #login h1 a .sgp-logo {
	width: 54px; height: 54px; flex: none; border-radius: 15px; filter: drop-shadow(0 8px 18px rgba(10, 72, 52, .32));
	background: var(--sgp-logo) center / 100% no-repeat;
}
body.login .sgp-nom { display: block; font: 400 30px/1.05 Georgia, "Times New Roman", serif; color: var(--profond); letter-spacing: -.01em; }
body.login .sgp-espace { display: block; margin-top: 4px; font: 600 12px/1.2 "Albert Sans", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--or-fonce); }

/* Verre liquide : flou et saturation de ce qui passe derrière, liseré spéculaire, reflet qui suit le pointeur,
   légère réfraction du fond (filtre SVG, navigateurs Chromium ; ailleurs, le flou seul). */
body.login #loginform, body.login #lostpasswordform, body.login #resetpassform, body.login #registerform, .sgp-verre {
	position: relative; isolation: isolate; border: 0; border-radius: 28px; overflow: visible;
	background: linear-gradient(160deg, rgba(255, 255, 255, .50), rgba(255, 255, 255, .18) 55%, rgba(255, 255, 255, .34));
	-webkit-backdrop-filter: blur(14px) saturate(190%); backdrop-filter: blur(14px) saturate(190%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .35),
		0 2px 6px rgba(10, 72, 52, .06), 0 30px 60px -18px rgba(10, 72, 52, .30);
}
@supports (backdrop-filter: url(#sgp-refraction)) {
	body.login.sgp-refracte #loginform, body.login.sgp-refracte #lostpasswordform, body.login.sgp-refracte #resetpassform { backdrop-filter: url(#sgp-refraction) blur(12px) saturate(190%); }
}
body.login form::before { /* liseré spéculaire */
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none; z-index: -1;
	background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .15) 30%, rgba(94, 211, 166, .35) 55%, rgba(255, 255, 255, .1) 75%, rgba(255, 255, 255, .8));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
body.login form::after { /* reflet qui suit le pointeur */
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
	background: radial-gradient(380px 260px at var(--lx, 30%) var(--ly, 0%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
}
body.login form { margin: 0; padding: 30px 30px 26px; }
body.login .sgp-titre { margin: 0 0 4px; font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--profond); letter-spacing: -.01em; }
body.login .sgp-sous-titre { margin: 0 0 22px !important; color: var(--texte-2); font-size: 14px; }
body.login #login form > p, body.login #login form .user-pass-wrap { margin: 0 0 16px; }
body.login label { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; color: #34403A; margin-bottom: 6px; }
body.login form .input, body.login input[type="text"], body.login input[type="email"], body.login input[type="password"], body.login input[type="number"], body.login input[type="tel"] {
	width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 14px 0 42px; font: inherit; font-size: 16px; color: var(--texte);
	border: 1px solid rgba(255, 255, 255, .85); border-radius: 14px; outline: none; background-color: rgba(255, 255, 255, .62);
	background-repeat: no-repeat; background-position: 14px 50%; background-size: 18px 18px;
	box-shadow: inset 0 1px 2px rgba(10, 72, 52, .08), 0 1px 0 rgba(255, 255, 255, .8);
	transition: box-shadow .2s, border-color .2s, background-color .2s;
}
body.login form .input:hover, body.login input[type="text"]:hover, body.login input[type="password"]:hover { background-color: rgba(255, 255, 255, .72); }
body.login form .input:focus, body.login input[type="text"]:focus, body.login input[type="email"]:focus, body.login input[type="password"]:focus, body.login input[type="number"]:focus, body.login input[type="tel"]:focus {
	border-color: rgba(18, 168, 114, .65); background-color: rgba(255, 255, 255, .85); box-shadow: inset 0 1px 2px rgba(10, 72, 52, .06), var(--focus);
}
body.login #user_login, body.login #user_email {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E");
}
body.login #user_pass, body.login #pass1, body.login #pass2 {
	padding-right: 50px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='3'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}
body.login .wp-pwd { position: relative; margin: 0; }
body.login .wp-pwd .button.wp-hide-pw {
	position: absolute; right: 5px; top: 5px; width: 40px; height: 38px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 11px;
	background: transparent; color: var(--emeraude); box-shadow: none; display: grid; place-items: center;
}
body.login .wp-pwd .button.wp-hide-pw:hover { background: rgba(18, 168, 114, .10); }
body.login .wp-pwd .button.wp-hide-pw:focus { outline: none; box-shadow: var(--focus); border: 0; }
body.login .wp-pwd .button.wp-hide-pw .dashicons { width: 20px; height: 20px; font-size: 20px; top: 0; color: inherit; }
body.login .caps-warning { margin-top: 6px; }

/* « Se souvenir de moi » : la case devient un interrupteur vert (toujours une vraie case à cocher). */
body.login .forgetmenot { display: flex; align-items: center; gap: 10px; float: none; margin: 4px 0 0 !important; }
body.login .forgetmenot label { display: inline; margin: 0; font-weight: 500; cursor: pointer; }
body.login #rememberme {
	-webkit-appearance: none; appearance: none; width: 40px; height: 24px; min-width: 40px; margin: 0; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
	position: relative; background: rgba(10, 72, 52, .16); box-shadow: inset 0 1px 2px rgba(10, 72, 52, .18); transition: background .25s;
}
body.login #rememberme::before {
	content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; margin: 0; border-radius: 50%; background: #fff;
	box-shadow: 0 2px 5px rgba(10, 72, 52, .3); transition: transform .3s var(--ressort);
}
body.login #rememberme:checked { background: linear-gradient(135deg, var(--vif), var(--emeraude)); }
body.login #rememberme:checked::before { content: ""; transform: translateX(16px); }
body.login #rememberme:focus { outline: none; box-shadow: var(--focus); }
body.login .forgetmenot .wp-tooltip__toggle { color: var(--emeraude); }

/* Bouton : verre teinté vert, reflet en haut, éclat au survol. */
body.login .submit { margin: 22px 0 0 !important; padding: 0; float: none; clear: both; }
body.login .button-primary, body.login #wp-submit {
	float: none; width: 100%; height: 50px; min-height: 50px; margin: 0; padding: 0 18px; border: 0; border-radius: 15px; cursor: pointer;
	font: 600 16px/1 "Albert Sans", system-ui, sans-serif; color: #fff; letter-spacing: .01em; text-shadow: none;
	background: linear-gradient(rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 48%) 0 0 / 100% 100% no-repeat,
		linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%) -160% 0 / 200% 100% no-repeat,
		linear-gradient(160deg, #19B97F, var(--emeraude) 55%, var(--profond));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 6px rgba(0, 0, 0, .12), 0 10px 24px -8px rgba(11, 122, 85, .65);
	transition: transform .25s var(--ressort), box-shadow .25s, filter .2s, background-position .8s ease;
}
body.login .button-primary:hover, body.login #wp-submit:hover {
	color: #fff; transform: translateY(-1px); filter: brightness(1.05); background-position: 0 0, 260% 0, 0 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 6px rgba(0, 0, 0, .12), 0 16px 30px -10px rgba(11, 122, 85, .7);
}
body.login .button-primary:active, body.login #wp-submit:active { transform: translateY(1px) scale(.99); }
body.login .button-primary:focus, body.login #wp-submit:focus { outline: none; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 4px rgba(18, 168, 114, .35), 0 10px 24px -8px rgba(11, 122, 85, .65); }
body.login .button-secondary:not(.wp-hide-pw) { border-radius: 12px; border-color: rgba(11, 122, 85, .35); color: var(--emeraude); background: rgba(255, 255, 255, .6); }
body.login .sgp-securite { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0 !important; font-size: 12.5px; color: var(--texte-2); }
body.login .sgp-securite svg { width: 15px; height: 15px; color: var(--emeraude); flex: none; }

/* Messages (erreur, information) en verre. */
body.login #login_error, body.login .message, body.login .notice, body.login .success {
	margin: 0 0 16px; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .7); border-left: 4px solid var(--vif); border-radius: 16px;
	background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: 0 10px 24px -12px rgba(10, 72, 52, .25); font-size: 13.5px; color: var(--texte);
}
body.login #login_error, body.login .notice-error { border-left-color: var(--corail); background: rgba(255, 244, 241, .78); color: #7E2A1B; }
body.login #login_error a, body.login .message a { color: var(--emeraude); font-weight: 600; }

/* Liens sous le formulaire. */
body.login #nav, body.login #backtoblog { margin: 18px 0 0; padding: 0; text-align: center; font-size: 13.5px; }
body.login #backtoblog { display: none; } /* le site entier est fermé : ce lien ramènerait ici */
body.login #nav a, body.login #backtoblog a { color: var(--emeraude); font-weight: 600; text-decoration: none; border-radius: 6px; }
body.login #nav a:hover { color: var(--profond); text-decoration: underline; }
body.login #nav a:focus, body.login #backtoblog a:focus { outline: none; box-shadow: var(--focus); color: var(--emeraude); }
body.login .language-switcher { display: none; }
body.login .privacy-policy-page-link { position: relative; z-index: 2; }
body.login a { color: var(--emeraude); }
.sgp-pied { position: relative; z-index: 2; text-align: center; font-size: 12px; color: rgba(29, 29, 31, .6); margin: 0; padding: 0 16px 24px; }
.sgp-pied span { display: inline-block; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
body.login .indicator-hint, body.login .description { color: var(--texte-2); }
body.login #pass-strength-result { border-radius: 10px; }

/* Apparition */
@media (prefers-reduced-motion: no-preference) {
	body.login #login h1, body.login #login form, body.login #nav { animation: sgp-monte .9s var(--ressort) both; }
	body.login #login form { animation-delay: .08s; }
	body.login #nav { animation-delay: .16s; }
}
@keyframes sgp-monte { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sgp-pastille { animation: none; } body.login #wp-submit { transition: none; } }
@media (max-width: 480px) {
	body.login #login { padding-top: 28px; }
	body.login form { padding: 24px 20px 22px; }
	body.login .sgp-nom { font-size: 26px; }
}
/* Reconnexion dans une fenêtre de l'administration : pas de décor ni d'animation. */
body.login.interim-login #login { padding-top: 16px; }
body.login.interim-login #login h1 { display: none; }
