:root {
	--se-green: #00b050;
	--se-green-hover: #009640;
	--se-blue-link: #0064d2;
	--card-radius: 20px;
}

/* === BODY === */
body {
	margin: 0;
	font-family: 'Segoe UI', Arial, sans-serif;
	background: url('/project/workspace/apps_shared/img/se-login-bg.jpg') no-repeat center center fixed;
	background-size: cover;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* === HEADER === */
.se-logo-holder {
	background-color: #fff;
	border-bottom: 1px solid #e0e0e0;
	height: 64px;
	position: relative;
}
.logo-position {
	background-repeat: no-repeat;
	background-size: auto 100%;
	height: 64px;
}
.lang-selector {
	position: absolute;
	top: 14px;
	right: 1rem;
	z-index: 10;
}
@media (max-width: 576px) {
	.lang-selector {
		top: 10px;
		right: -1rem;
	}
}


/* === CARD LOGIN === */
.login-card {
	background: white;
	border-radius: var(--card-radius);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	width: 100%;
	max-width: 380px;
	padding: 2rem;
	text-align: center;
	margin: auto;
}
.login-card img {
	height: 55px;
	margin-bottom: 1.2rem;
}
.login-card h2 {
	font-weight: 500;
	color: #222;
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}
.login-card p.subtitle {
	color: #555;
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}
.login-card a.link-blue {
	color: var(--se-blue-link);
	text-decoration: none;
	font-size: 0.85rem;
}
.login-card a.link-blue:hover {
	text-decoration: underline;
}

/* === FORMULAIRE === */
.input-group {
	text-align: left;
	margin-bottom: 1rem;
}
.input-group label {
	display: block;
	font-size: 0.8rem;
	color: #333;
	margin-bottom: 0.4rem;
}
.input-group input[type="email"],
.input-group input[type="password"] {
	width: 100%;
	padding: 0.7rem;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}
.input-group input[type="checkbox"] {
	margin-right: 0.4rem;
}

#error_message {
	color: #d32f2f;
	font-size: 0.85rem;
	margin-bottom: 1rem;
	text-align: left;
}

/* === BOUTON === */
.btn-green {
	background-color: var(--se-green);
	color: white;
	font-size: 1rem;
	padding: 0.6rem 1rem;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	width: 100%;
	margin-top: 1rem;
}
.btn-green:hover {
	background-color: var(--se-green-hover);
}

/* === INFO TEXT === */
.info-text {
	font-size: 0.75rem;
	color: #555;
	text-align: left;
	margin-top: 1.5rem;
	line-height: 1.4;
}

/* === FOOTER === */
.se-footer-dark {
	background-color: #2d2d2d;
	color: #fff;
	font-size: 13px;
	padding: 14px 20px;
	width: 100%;
	box-sizing: border-box;
}
.footer-links a {
	display: inline-block;
}


.container-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}
.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}
.footer-links a {
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	font-size: 13px;
}
.footer-links a:hover {
	text-decoration: underline;
}
.footer-copy {
	text-align: right;
	color: #ccc;
	font-size: 12px;
	line-height: 1.4;
}

/* === LANG SELECTOR === */
.lang-selector select {
	appearance: none;
	background-color: #fff;
	border: 1px solid #ced4da;
	border-radius: 0.375rem;
	padding: 0.375rem 2rem 0.375rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #212529;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14l-4.796-5.481a.5.5 0 01.748-.662L8 9.293l4.801-4.296a.5.5 0 11.666.748l-5.5 4.917a.5.5 0 01-.72 0z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 1rem;
}

/* === MOT DE PASSE === */
.password-wrapper {
	margin-bottom: 1rem;
}
.password-wrapper label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
	color: #333;
}
.password-input-container {
	position: relative;
}
.password-input-container input {
	width: 100%;
	padding: 0.7rem 2.5rem 0.7rem 0.75rem;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}
.toggle-password {
	position: absolute;
	right: 0.6rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 1.5rem;
	height: 1.5rem;
}
.eye-icon {
	display: inline-block;
	width: 1.2rem;
	height: 1.2rem;
	background-repeat: no-repeat;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8a13.133 13.133 0 0 1-1.66 2.043C11.879 11.332 10.12 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.133 13.133 0 0 1 1.172 8zM8 5.5A2.5 2.5 0 1 0 8 10.5a2.5 2.5 0 0 0 0-5z'/%3E%3C/svg%3E");
}
.form-floating-group {
	position: relative;
	margin-bottom: 1.5rem;
}

.form-floating-group input {
	width: 100%;
	padding: 1.2rem 0.75rem 0.6rem 0.75rem;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.form-floating-group label {
	position: absolute;
	top: -0.6rem;
	left: 0.75rem;
	background: white;
	padding: 0 0.25rem;
	font-size: 0.75rem;
	color: #333;
	pointer-events: none;
}
#wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center; /* ou 'space-between' selon besoin */
}

/* Pour l'œil */
.password-input-container {
	position: relative;
}

.password-input-container .toggle-password {
	position: absolute;
	right: 0.6rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 1.5rem;
	height: 1.5rem;
}
/* === CORRECTIONS RESPONSIVES POUR ÉVITER LES DÉBORDEMENTS === */

/* Tous les éléments respectent la boîte */
*, *::before, *::after {
	box-sizing: border-box;
}

/* Le select de langue reste dans sa zone */
.lang-selector select {
	max-width: 100%;
	width: 100%;
}

/* L'icône œil ne dépasse pas */
.toggle-password,
.eye-icon {
	max-width: 1.5rem;
	max-height: 1.5rem;
	overflow: hidden;
}

/* Les champs input s’adaptent toujours */
.input-group input,
.password-input-container input,
.form-floating-group input {
	width: 100%;
	max-width: 100%;
}

/* Les textes longs ne cassent pas la mise en page */
.login-card a,
.login-card p,
.login-card span {
	word-break: break-word;
	overflow-wrap: break-word;
}

/* Mobile compact: évite les marges qui étirent */
@media (max-width: 420px) {

	.lang-selector {
		right: 0.5rem;
	}
	.se-logo-holder {
		padding-right: 1rem;
	}
}
.custom-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem; /* espace entre checkbox et texte */
	font-family: 'Segoe UI', Arial, sans-serif;
	font-size: 14px;
}

.custom-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #00b050; /* vert Schneider si navigateur supporte */
}

.custom-checkbox label {
	cursor: pointer;
	margin: 0;
	user-select: none;
}
.login-background {
	background: url('/project/workspace/web/img/public/se-login-background.png') no-repeat center center;
	background-size: cover;
display: flex;
	justify-content: center;
	align-items: center;
	min-height: calc(100vh - 64px - 62px); /* hauteur totale moins header et footer */
	padding: 2rem; /* sécurité pour petits écrans */

	/* Optionnel : ajouter un léger assombrissement */
	/* background-color: rgba(0, 0, 0, 0.3); */
	/* background-blend-mode: darken; */
}
@media (max-width: 576px) {
	.login-background {
		background: none;
	}
}

main.login-background {
	flex: 1; /* prend toute la hauteur restante */
}