/*
 * Stericenter – Accès espace client
 * Les couleurs et polices reprennent les réglages globaux d'Elementor
 * (Site Settings > Global Colors / Global Fonts). Valeurs de repli entre parenthèses.
 * Pour ajuster, surchargez simplement les variables --stc-* ci-dessous.
 */
.stc-login {
	--stc-primary: var(--e-global-color-primary, #1f5f8b);
	--stc-accent: var(--e-global-color-accent, var(--stc-primary));
	--stc-text: var(--e-global-color-text, #2b2f33);
	--stc-muted: #6b7280;
	--stc-border: #d5dbe1;
	--stc-bg: #ffffff;
	--stc-radius: 6px;

	max-width: 420px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	color: var(--stc-text);
	font-family: var(--e-global-typography-text-font-family, inherit);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}

.stc-login *,
.stc-login *::before,
.stc-login *::after {
	box-sizing: inherit;
}

.stc-login .stc-login__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 32px;
	background: var(--stc-bg);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: calc(var(--stc-radius) + 4px);
	box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.stc-login--plain .stc-login__form {
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

/* Champs */
.stc-login .stc-login__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.stc-login .stc-login__field label {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--stc-text);
}

.stc-login .stc-login__field input {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	font: inherit;
	font-size: 16px; /* évite le zoom automatique sur iOS */
	color: var(--stc-text);
	background: #fff;
	border: 1px solid var(--stc-border);
	border-radius: var(--stc-radius);
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stc-login .stc-login__field input:focus {
	border-color: var(--stc-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--stc-accent) 22%, transparent);
}

/* Mot de passe + bouton Afficher */
.stc-login .stc-login__pass {
	position: relative;
}

.stc-login .stc-login__pass input {
	padding-right: 88px;
}

.stc-login .stc-login__toggle,
.stc-login .stc-login__toggle:hover,
.stc-login .stc-login__toggle:focus {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	min-width: 0;
	height: 36px;
	margin: 0;
	padding: 0 12px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--stc-primary);
	background: transparent;
	border: 0;
	border-radius: calc(var(--stc-radius) - 2px);
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.stc-login .stc-login__toggle:hover {
	background: color-mix(in srgb, var(--stc-primary) 8%, transparent);
}

.stc-login .stc-login__toggle:focus-visible {
	outline: 2px solid var(--stc-accent);
	outline-offset: 1px;
}

/* Se souvenir de moi */
.stc-login .stc-login__remember {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	color: var(--stc-text);
	cursor: pointer;
	user-select: none;
}

.stc-login .stc-login__remember input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--stc-accent);
	cursor: pointer;
}

/* Bouton principal */
.stc-login .stc-login__submit,
.stc-login .stc-login__submit:hover,
.stc-login .stc-login__submit:focus,
.stc-login .stc-login__submit:visited {
	display: block;
	width: 100%;
	margin: 4px 0 0;
	padding: 14px 20px;
	font-family: var(--e-global-typography-accent-font-family, inherit);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: var(--stc-accent);
	border: 0;
	border-radius: var(--stc-radius);
	box-shadow: none;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.stc-login .stc-login__submit:hover {
	filter: brightness(0.92);
}

.stc-login .stc-login__submit:focus-visible {
	outline: 2px solid var(--stc-accent);
	outline-offset: 2px;
}

/* Messages */
.stc-login .stc-login__notice {
	margin: 0;
	padding: 12px 14px;
	font-size: 15px;
	border-radius: var(--stc-radius);
	border-left: 3px solid;
}

.stc-login .stc-login__notice--error {
	color: #8a1c1c;
	background: #fdeeee;
	border-color: #c62828;
}

.stc-login .stc-login__notice--info {
	color: var(--stc-text);
	background: color-mix(in srgb, var(--stc-primary) 8%, #fff);
	border-color: var(--stc-primary);
}

.stc-login > .stc-login__notice {
	margin-bottom: 16px;
}

/* État connecté */
.stc-login .stc-login__text {
	margin: 0;
}

.stc-login .stc-login__link {
	align-self: center;
	font-size: 15px;
	color: var(--stc-primary);
}

/* Champ piège anti-robots */
.stc-login .stc-login__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 480px) {
	.stc-login .stc-login__form {
		padding: 24px 20px;
	}
	.stc-login--plain .stc-login__form {
		padding: 0;
	}
}
