/* Écran de connexion : composant autonome, sans styles inline. */
body {
	min-height: 100vh;
	background:
		radial-gradient(circle at 8% 0, rgba(255, 181, 0, .14), transparent 26rem),
		linear-gradient(180deg, #f8f9fa 0%, #eef1f4 100%);
}

.xome-login-header {
	min-height: 5.25rem;
	padding: .75rem clamp(1rem, 3vw, 3rem);
	border-color: rgba(52, 58, 64, .12) !important;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: blur(12px);
}

.xome-login-header .container-fluid {
	padding: 0;
}

.xome-login-brand {
	max-width: 11.5rem;
	max-height: 3.5rem;
	object-fit: contain;
}

.xome-login-brand-extra {
	max-width: 22rem;
	max-height: 3.25rem;
	object-fit: contain;
}

.xome-login-product {
	height: 1.75rem;
	object-fit: contain;
	opacity: .82;
}

.xome-login-main {
	display: flex;
	align-items: center;
	width: min(100%, 76rem);
}

.xome-login-shell {
	width: 100%;
	min-height: calc(100vh - 10.5rem);
}

.xome-login-column {
	display: flex;
	justify-content: center;
}

.xome-login-card {
	position: relative;
	box-sizing: border-box;
	width: min(100%, 29rem);
	padding: clamp(1.75rem, 4vw, 2.5rem);
	border: 1px solid rgba(52, 58, 64, .14);
	border-radius: 1rem;
	box-shadow: 0 1.25rem 3.5rem rgba(31, 35, 38, .12);
}

/* Le changement de mot de passe est un formulaire plus large que le login. */
.xome-password-change .xome-login-main {
	width: min(100%, 62rem);
}

.xome-password-change .xome-login-card {
	width: min(100%, 44rem);
}

.xome-login-card::before {
	position: absolute;
	top: 0;
	left: 2rem;
	width: 4.5rem;
	height: .25rem;
	border-radius: 0 0 999px 999px;
	background: #ffb500;
	content: "";
}

.xome-login-card h1,
.xome-login-card h2 {
	margin-bottom: 1.25rem !important;
	color: #212529;
	font-weight: 600;
	letter-spacing: -.02em;
}

.xome-login-card .alert {
	margin-bottom: 1.5rem;
	border-radius: .625rem;
}

.xome-login-card .alert-info {
	border: 1px solid rgba(52, 58, 64, .12);
	border-left: .25rem solid #ffb500;
	background: #f8f9fa;
	color: #495057;
}

.xome-login-card .form-label {
	margin-bottom: .45rem;
	color: #343a40;
	font-size: 1rem;
	font-weight: 600;
}

.xome-login-card .form-control,
.xome-login-card .form-select {
	border-color: #ced4da;
	border-radius: .5rem;
	box-shadow: none;
}

.xome-login-card .form-control-lg {
	min-height: 3.125rem;
	padding: .625rem .875rem;
	font-size: 1rem;
}

.xome-login-card .form-control:focus,
.xome-login-card .form-select:focus {
	border-color: #e5a300;
	box-shadow: 0 0 0 .25rem rgba(255, 181, 0, .2);
}

.xome-login-card .input-group > .form-control {
	border-right: 0;
}

.xome-login-card .input-group > .form-control:focus {
	border-right: 0;
	position: relative;
	z-index: 2;
}

.xome-password-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	padding: 0;
	border-color: #ced4da;
	border-radius: 0 .5rem .5rem 0 !important;
	color: #495057;
	background: #fff;
}

.xome-password-toggle:hover,
.xome-password-toggle:focus {
	border-color: #6c757d;
	color: #212529;
	background: #f8f9fa;
	box-shadow: none;
}

.xome-password-toggle:focus-visible {
	position: relative;
	z-index: 3;
	box-shadow: 0 0 0 .25rem rgba(255, 181, 0, .2);
}

.xome-password-toggle svg {
	width: 1.125rem;
	height: 1.125rem;
}

.xome-password-toggle [data-password-visible-icon] {
	display: none;
}

.xome-password-toggle.is-visible [data-password-hidden-icon] {
	display: none;
}

.xome-password-toggle.is-visible [data-password-visible-icon] {
	display: block;
}

/* Règle Xome : primary gris outline au repos, orange au survol/focus. */
.xome-login-card .btn-primary {
	min-height: 3.125rem;
	border-color: #6c757d;
	color: #495057;
	background: #fff;
	font-weight: 600;
	box-shadow: none;
	transition: color .15s ease-in-out, border-color .15s ease-in-out, background-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.xome-login-card .btn-primary:hover,
.xome-login-card .btn-primary:focus,
.xome-login-card .btn-primary:active,
.xome-login-card .btn-primary.active {
	border-color: #ffb500;
	color: #212529;
	background: #ffb500;
	box-shadow: none;
}

.xome-login-card .btn-primary:focus-visible {
	box-shadow: 0 0 0 .25rem rgba(255, 181, 0, .3);
}

.xome-login-card .link-secondary {
	color: #5c6770 !important;
	text-decoration-color: rgba(92, 103, 112, .45);
	text-underline-offset: .18em;
}

.xome-login-card .link-secondary:hover,
.xome-login-card .link-secondary:focus {
	color: #212529 !important;
	text-decoration-color: #ffb500;
}

#forgetPasswordDiv img {
	width: 100%;
	max-width: 17.5rem;
	height: auto;
	margin: .25rem 0 1rem;
	border: 1px solid rgba(52, 58, 64, .14);
	border-radius: .625rem;
}

.xome-login-footer {
	min-height: 2.5rem;
	padding: .75rem 1rem;
	border-top: 1px solid rgba(52, 58, 64, .1);
	background: rgba(255, 255, 255, .66);
	color: #6c757d;
	font-size: .8125rem;
	text-align: center;
}

@media (max-width: 991.98px) {
	body {
		min-height: 100dvh;
	}

	.xome-login-header {
		min-height: 4.25rem;
		padding: .625rem 1rem;
	}

	.xome-login-header .container-fluid {
		justify-content: center;
	}

	.xome-login-brand {
		max-width: 9.5rem;
		max-height: 2.75rem;
	}

	.xome-login-brand-extra,
	.xome-login-product {
		display: none !important;
	}

	.xome-login-main {
		align-items: flex-start;
		width: 100%;
		max-width: none;
		padding: 1rem;
	}

	.xome-login-shell {
		min-height: auto;
		margin: 0;
		padding: 0;
	}

	.xome-login-column {
		padding: 0;
	}

	.xome-login-card {
		width: 100%;
		padding: 1.5rem;
	}

	.xome-login-footer {
		margin-top: auto;
	}
}
