/* Copie recolorée (charte AEROTECH) de wp-content/plugins/aerotech-atelier/assets/formulaire/login.css */
/*
 * AEROTECH Atelier : écran de connexion « l'e-mail d'abord » et page « Mot de passe ».
 * Même rendu que l'écran de CogitoWeb (mêmes classes gacct-login-*).
 * Charte : turquoise #FF6900 (survol #189998, texte #148483), bouton #FF6900 / #1a1a1a.
 */

/* ---------- Conteneur ---------- */
.gacct-login { margin-top: 32px; text-align: left; }
.gacct-login-step { display: flex; flex-direction: column; gap: 0; }
/* L'attribut hidden l'emporte toujours sur le display du thème. */
.gacct-login .gacct-login-step[hidden] { display: none !important; }
.gacct-login-step.is-busy { opacity: 0.85; }
.gacct-login-logged { text-align: center; }

/* ---------- Champs ---------- */
.gacct-login-label { display: block; margin: 0 0 6px; font-size: calc(14px + var(--atx-fp,0px)*.75); font-weight: 700; color: #1a1a1a; }
.gacct-login-label--spaced { margin-top: 16px; }
.gacct-login-input {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid #d8d8d8;
	border-radius: 10px;
	background: #fff;
	color: #1a1a1a;
	font: inherit;
	font-size: 16px;
	transition: border-color 150ms, box-shadow 150ms;
}
.gacct-login-input:focus { outline: none; border-color: #FF6900; box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.18); }

/* Champ de la charte : 52 px, bord léger, libellé flottant turquoise. */
.gacct-login-field { position: relative; }
.gacct-login-field--spaced { margin-top: 12px; }
.gacct-login-field .gacct-login-input {
	height: 52px;
	padding: 20px 13px 7px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	font-size: calc(14px + var(--atx-fp,0px)*.75);
	line-height: 1.4;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.gacct-login-field .gacct-login-input:hover,
.gacct-login-field .gacct-login-input:focus { outline: none; border-color: #FF6900; box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.1); }
.gacct-login-pw { position: relative; }
.gacct-login-pw .gacct-login-input,
.gacct-login-field.gacct-login-pw .gacct-login-input { padding-right: 46px; }

.gacct-login-flabel {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	max-width: calc(100% - 26px);
	margin: 0;
	overflow: hidden;
	color: #292728;
	font-size: calc(14px + var(--atx-fp,0px)*.75);
	font-weight: 400;
	white-space: nowrap;
	text-overflow: ellipsis;
	pointer-events: none;
	transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.gacct-login-input:focus ~ .gacct-login-flabel,
.gacct-login-input:not(:placeholder-shown) ~ .gacct-login-flabel {
	top: 8px;
	transform: none;
	color: #FF6900;
	font-size: calc(10px + var(--atx-fp,0px));
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.gacct-login-input:not(:placeholder-shown):not(:focus) ~ .gacct-login-flabel { color: #FF6900; }

.gacct-login-hint { margin: 8px 0 0; font-size: calc(13px + var(--atx-fp,0px)); color: #777; }

/* ---------- Bouton principal (comme le bouton « Demande d'intervention » du site) ---------- */
.gacct-login button.gacct-login-btn,
.gacct-login button.gacct-login-btn:hover,
.gacct-login button.gacct-login-btn:focus { border: 0; border-style: none; box-shadow: none; }
.gacct-login button.gacct-login-btn {
	display: block;
	width: 100%;
	margin-top: 18px;
	padding: 13px 22px;
	border: 0;
	border-radius: 6px !important;
	background: #FF6900;
	color: #1a1a1a;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}
.gacct-login button.gacct-login-btn:hover,
.gacct-login button.gacct-login-btn:focus-visible { background: #1a1a1a; color: #fff; border-radius: 6px !important; }
.gacct-login button.gacct-login-btn:active { transform: translateY(1px); }
.gacct-login-btn:disabled { opacity: 0.7; cursor: wait; }
.gacct-login-btn:focus-visible,
.gacct-login-link:focus-visible,
.gacct-login-eye:focus-visible { outline: 3px solid rgba(255, 105, 0, 0.5); outline-offset: 2px; }
.gacct-login a.gacct-login-btn--link { display: block; text-align: center; text-decoration: none; }

/* ---------- Encadré « qui » (adresse saisie) ---------- */
.gacct-login-who { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: #f3f8f8; }
.gacct-login-who-title { margin: 0; font-size: 17px; font-weight: 800; color: #1a1a1a; }
.gacct-login-who-mail { margin: 4px 0 0; font-size: calc(14px + var(--atx-fp,0px)*.75); color: #444; word-break: break-all; }

/* ---------- Liens-boutons ---------- */
.gacct-login button.gacct-login-link,
.gacct-login button.gacct-login-link:hover,
.gacct-login button.gacct-login-link:focus { background: none; border: 0; border-style: none; border-radius: 0; box-shadow: none; }
.gacct-login button.gacct-login-link {
	padding: 0;
	border: 0;
	background: none;
	color: #FF6900;
	font: inherit;
	font-size: calc(13px + var(--atx-fp,0px));
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.gacct-login-link:hover { color: #189998; }
.gacct-login-link:disabled { opacity: 0.6; cursor: wait; }
.gacct-login-intro { margin: 0 0 16px; font-size: calc(14px + var(--atx-fp,0px)*.75); line-height: 1.55; color: #555; }

/* ---------- Œil du mot de passe ---------- */
.gacct-login button.gacct-login-eye,
.gacct-login button.gacct-login-eye:hover,
.gacct-login button.gacct-login-eye:focus { padding: 0; border: 0; border-style: none; background: none; box-shadow: none; color: #999; }
.gacct-login button.gacct-login-eye {
	position: absolute;
	top: 50%;
	right: 8px;
	width: 32px;
	height: 32px;
	transform: translateY(-50%);
	border: 0;
	background: none;
	color: #999;
	cursor: pointer;
}
.gacct-login-eye::before {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	margin: 0 auto;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat;
}
.gacct-login button.gacct-login-eye:hover,
.gacct-login button.gacct-login-eye.is-on { color: #FF6900; }

/* ---------- Se souvenir, mot de passe oublié, mentions ---------- */
.gacct-login-remember { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: calc(14px + var(--atx-fp,0px)*.75); color: #444; cursor: pointer; }
.gacct-login-remember input { width: 18px; height: 18px; margin: 0; accent-color: #FF6900; }
.gacct-login-forgot { margin: 14px 0 0; font-size: calc(13px + var(--atx-fp,0px)); text-align: center; }
.gacct-login-forgot button.gacct-login-link { color: #666; font-weight: 400; }
.gacct-login-forgot button.gacct-login-link:hover { color: #FF6900; }
.gacct-login-step--password.is-imported .gacct-login-forgot button.gacct-login-link { color: #FF6900; font-weight: 700; }
.gacct-login-legal { margin: 12px 0 0; font-size: calc(12px + var(--atx-fp,0px)); line-height: 1.5; color: #777; text-align: center; }
.gacct-login-legal a { color: #555; text-decoration: underline; }

/* ---------- Messages ---------- */
.gacct-login-msg { margin: 14px 0 0; padding: 12px 16px; border-radius: 10px; background: #f3f8f8; color: #148483; font-size: calc(14px + var(--atx-fp,0px)*.75); line-height: 1.5; }
.gacct-login-msg--error { background: #fdecec; color: #c0392b; }
.gacct-login-msg--success { background: #e9f8f8; color: #148483; }
.gacct-login-msg[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
	.gacct-login-input, .gacct-login-btn, .gacct-login-link { transition: none; }
}

/* ---------- Contexte « demande » : en-tête, Google, carte ---------- */
.gacct-login-head { margin: 0 0 18px; }
.gacct-login-progress { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: #555; }
.gacct-login-progress strong { color: #1a1a1a; }
.gacct-login-progress-bar { display: flex; gap: 6px; margin: 0 0 22px; }
.gacct-login-progress-bar > div { flex: 1; height: 8px; border-radius: 99px; background: #e3e8ee; }
.gacct-login-progress-bar > div.is-active { background: #FF6900; }
.gacct-login-title { margin: 0 0 8px; font-size: 26px; line-height: 1.2; font-weight: 800; color: #1a1a1a; }

.gacct-login-google .nsl-container { margin: 0 !important; }
.gacct-login-google .nsl-container-block .nsl-container-buttons { display: block; }
.gacct-login-google .nsl-container-block .nsl-container-buttons a { display: block; max-width: none; margin: 0; }
.gacct-login-google .nsl-container-buttons a .nsl-button {
	width: 100%;
	justify-content: center;
	border-radius: 6px !important;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25) !important;
	transition: background-color 0.3s, box-shadow 0.3s;
}
.gacct-login-google .nsl-container-buttons a:hover .nsl-button,
.gacct-login-google .nsl-container-buttons a:focus-visible .nsl-button { background: #f3f3f3 !important; box-shadow: inset 0 0 0 1px #1a1a1a !important; }
.gacct-login-google .nsl-container-buttons a .nsl-button-label-container { font-weight: 700; }
.gacct-login-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; font-size: calc(13px + var(--atx-fp,0px)); color: #777; text-align: center; }
.gacct-login-or::before,
.gacct-login-or::after { content: ""; flex: 1; height: 1px; background: #e2e2e2; }

.gacct-login--demande { max-width: 560px; margin: 0 auto; padding: 28px 24px; border: 1px solid #e8e8e8; border-radius: 16px; background: #fff; }

/* ---------- Page « Mot de passe » : mise en page de /connexion/ (bloc 420 px centré, sans carte) ---------- */
.gacct-login--lost { max-width: 420px; margin: 40px auto 64px; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; }
.gacct-login--lost .gacct-login-title { margin: 0 0 12px; font-size: 32px; line-height: 1.15; font-weight: 900; color: #1a1a1a; text-align: center; }
.gacct-login--lost .gacct-login-intro { margin: 0 0 64px; font-size: calc(14px + var(--atx-fp,0px)*.75); line-height: 1.6; color: #666; text-align: center; }
.gacct-login--lost .gacct-login-notices { margin-bottom: 20px; }
.gacct-login--lost .gacct-login-forgot { margin-top: 18px; }
.gacct-login--lost .gacct-login-forgot a.gacct-login-link { color: #666; font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
.gacct-login--lost .gacct-login-forgot a.gacct-login-link:hover { color: #FF6900; }

/* Notices WooCommerce dans le style de l'écran. */
.gacct-login-notices .woocommerce-error,
.gacct-login-notices .woocommerce-message,
.gacct-login-notices .woocommerce-info {
	list-style: none;
	margin: 0 0 16px;
	padding: 12px 16px;
	padding-left: 16px !important;
	border: 0 !important;
	border-radius: 10px;
	background: #f3f8f8;
	color: #148483;
	font-size: calc(14px + var(--atx-fp,0px)*.75);
	line-height: 1.5;
}
.gacct-login-notices .woocommerce-error { background: #fdecec; color: #c0392b; }
.gacct-login-notices .woocommerce-error li,
.gacct-login-notices .woocommerce-message li { margin: 0; }
.gacct-login-notices .woocommerce-error li { padding: 0 !important; }
.gacct-login-notices .woocommerce-error::before,
.gacct-login-notices .woocommerce-message::before,
.gacct-login-notices .woocommerce-info::before,
.gacct-login-notices .woocommerce-error li::before { display: none !important; content: none !important; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.gacct-login--demande { padding: 20px 14px; }
	.gacct-login-title { font-size: 22px; }
	.gacct-login--lost { margin: 24px auto 48px; padding: 0 16px; }
	.gacct-login--lost .gacct-login-title { font-size: 26px; }
}
.gacct-login-news { margin: 4px 0 14px; line-height: 1.35; }

/* 19/11/2026 : compte créé pour le client, jamais activé : « Recevoir le lien pour créer mon mot de passe » au premier plan */
.gacct-login-have { display: none; margin: 10px 0 0; text-align: center; }
.gacct-login-step--password.is-a-creer .gacct-login-have { display: block; }
.gacct-login-step--password.is-a-creer .gacct-login-pw,
.gacct-login-step--password.is-a-creer .gacct-login-remember,
.gacct-login-step--password.is-a-creer button[type="submit"] { display: none; }
.gacct-login-step--password.is-a-creer .gacct-login-forgot { margin-top: 14px; }
.gacct-login-step--password.is-a-creer .gacct-login-forgot button.gacct-login-link { display: block; width: 100%; padding: 14px 16px; border-radius: 12px; background: #FF6900; color: #fff; font-weight: 700; text-decoration: none; text-align: center; }

/* 19/11/2026 : phrase d'incitation sous la case newsletter */
.gacct-login-news-aide { margin: -4px 0 12px 26px; font-size: calc(12px + var(--atx-fp,0px)); line-height: 1.45; color: #6b7378; }

/* 19/11/2026 : compte complet à la création (prénom, nom, portable, adresse, mot de passe) */
.gacct-login-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.gacct-login-field--select select.gacct-login-input { appearance: auto; padding-top: 22px; }
.gacct-login-field--select .gacct-login-flabel { top: 8px; font-size: calc(12px + var(--atx-fp,0px)); transform: none; }
.gacct-login-step--create .gacct-login-news { margin-top: 14px; }
@media (max-width: 380px) { .gacct-login-duo { grid-template-columns: 1fr; } }
