.kc-background {
	background-image: url('../img/default-login-bg.jpg');
	background-size: cover;
	background-position: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.kc-content-wrapper {
	padding: 80px;
	position: fixed;
	top: 0;
	right: 0;
	z-index: 10;
	width: 520px;
	height: 100%;
	color: #bec4c8;
	text-align: center;
	background: rgba(11, 17, 25, 0.95);
	display: block;
	box-sizing: border-box;
	font: 16px "Titillium Web", serif;
}

.kc-header {
	display: none;
}

#kc-form-login {
	margin: calc(24vh - 24%) 0 24px;
}

#kc-content {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
}

#kc-logo,
#kc-logo a {
	cursor: default;
}

#kc-logo {
	width: 100%;
	margin-top: 60px;
	margin-bottom: 40px;
}

#kc-logo-wrapper {
	background-image: url("../img/logo-login.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	height: 75px;
	min-width: 220px;
	margin-top: 0;
}

.kc-locale {
	display: block;
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 0;
	min-width: 100px;
}

.kc-locale-wrapper {
	background: #334455;
	border-radius: 3px;
	padding: 0;
}

.kc-dropdown {
	position: relative;
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
	text-align: left;
}

.kc-dropdown ul {
	transition-property: all;
	transition-duration: .2s;
	position: relative;
	z-index: 2000;
	list-style: none;
	display: none;
	padding: 5px 0px;
	margin: 0px;
	border: 1px solid #b6b6b6;
	-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
	background-clip: padding-box;
	min-width: 100px;
	border-radius: 1px 1px 3px 3px;
}

.kc-dropdown:hover ul {
	transition-property: all;
	transition-duration: .2s;
	display: block;
}

.kc-dropdown > a {
	line-height: 12px;
	color: #fff;
	text-decoration: none;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	padding: 8px;
	font-size: 14px;
}

.kc-dropdown ul li a {
	padding: 1px 11px;
	font-size: 12px;
	color: rgb(255, 255, 255);
	text-decoration: none;
	display: block;
	line-height: 20px;
}

.kc-dropdown ul li a:hover {
	background-color: #98afce;
	border-color: #b3d3e7;
	color: #000000;
}

.kc-dropdown:hover .kc-locale-caret {
	transition-property: all;
	transition-duration: .2s;
	margin-top: 3px;
	transform: rotate(-135deg);
	-webkit-transform: rotate(-135deg);
}

.kc-dropdown-item > img {
	margin-right: 5px;
}

.kc-dropdown-item > a {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	padding: 2px 8px;
	font-size: 14px;
}

.kc-locale-caret {
	transition-property: all;
	transition-duration: .2s;
	margin-left: 10px;
	margin-right: 4px;
	margin-top: -3px;
	border: solid white;
	border-width: 0 3px 3px 0;
	display: inline-block;
	padding: 3px;
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
}

.kc-dropdown:hover .kc-locale-caret {
	transition-property: all;
	transition-duration: .2s;
	margin-top: 3px;
	transform: rotate(-135deg);
	-webkit-transform: rotate(-135deg);
}

.kc-input-label {
	display: none;
}

.kc-input {
	font-family: "Titillium Web", serif;
	padding: 12px 13px;
	font-size: 16px;
	font-weight: 600;
	color: #394556;
	background: #ffffff;
	border: solid 1px #ccd3d7;
	border-radius: 3px;
	display: inline-block;
	vertical-align: middle;

	box-sizing: border-box;
	margin-bottom: 12px;
	width: 100%;
}

.kc-form-buttons-login {
	margin-top: -120px;
}

.kc-form-buttons-wrapper {
	pointer-events: none;
}

.kc-form-buttons-wrapper > * {
	pointer-events: auto;
}

.checkbox {
	display: inline-block;
	width: 49%;
	text-align: left;
	margin-left: -4px;
}

.checkbox label {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.checkbox input {
	cursor: pointer;
	margin-right: 8px;
}

.kc-form-options {
	font-size: 14px;
	line-height: 20px;
	margin-top: 60px;
}

.kc-form-options-wrapper {
	display: inline-block;
	width: 49%;
	text-align: right;
	margin-left: 4px;
}

.kc-form-options-wrapper a {
	transition-property: all;
	transition-duration: 0.3s;
	color: #15bdf4;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

a {
	color: #15bdf4;
	text-decoration: none;
}

.kc-form-options-wrapper a:hover {
	color: white;
	text-decoration: underline;
}

.kc-button {
	background-color: rgb(21, 189, 244);
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	color: rgb(255, 255, 255);
	cursor: pointer;
	display: inline-block;
	font-family: "Titillium Web", serif;
	font-size: 15px;
	font-weight: 600;
	height: 47px;
	border: 0;
	margin-top: 40px;
	line-height: 17.25px;
	min-width: 180px;
	padding-bottom: 14px;
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 14px;
	position: relative;
	text-align: center;
	text-transform: uppercase;
	transition-duration: 0.3s;
	transition-property: all;
	width: 360px;
}

.kc-button-secondary {
	background-color: transparent;
	border: 2px solid rgb(21, 189, 244);
	color: rgb(21, 189, 244);
	text-decoration: none;
}

.kc-button-block {
	display: block;
	width: 100%;
	text-align: center;
}

.kc-margin-top {
	margin-top: 40px;
}

.alert {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	margin-top: 20px;
	margin-bottom: 8px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
}

.alert-icon {
	font-size: 18px;
	flex-shrink: 0;
}

.alert-error {
	background: rgba(220, 38, 38, 0.12);
	border: 1px solid rgba(220, 38, 38, 0.35);
	color: #fca5a5;
}

.alert-success {
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #86efac;
}

.alert-warning {
	background: rgba(21, 189, 244, 0.08);
	border: 1px solid rgba(21, 189, 244, 0.25);
	color: #bec4c8;
}

.alert-info {
	background: rgba(21, 189, 244, 0.08);
	border: 1px solid rgba(21, 189, 244, 0.25);
	color: #bec4c8;
}

.alert-error .alert-icon {
	color: #f87171;
}

.alert-success .alert-icon {
	color: #4ade80;
}

.alert-warning .alert-icon,
.alert-info .alert-icon {
	color: #15bdf4;
}

/* Planned maintenance banner */
.kc-maintenance {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	box-sizing: border-box;
	margin: 60px 0 0;
	padding: 14px 18px;
	background: linear-gradient(180deg, rgba(245, 166, 35, 0.14), rgba(245, 166, 35, 0.05));
	border: 1px solid rgba(245, 166, 35, 0.35);
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	text-align: left;
	font-family: "Titillium Web", serif;
}

.kc-maintenance__icon {
	flex-shrink: 0;
	margin-top: 2px;
	font-size: 20px;
	line-height: 1;
	color: #f5a623;
}

.kc-maintenance__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.kc-maintenance__title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #f5a623;
}

.kc-maintenance__text {
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-line;
	color: #d6dde2;
}

.kc-maintenance__text strong {
	color: #ffffff;
	font-weight: 700;
}

.kc-feedback-area {
	position: relative;
	width: 100%;
	height: 0;
}

.kc-feedback-area .alert {
	position: absolute;
	top: -10px;
	left: 0;
	right: 0;
	margin: 0;
	z-index: 5;
}

.kc-info-area {
	padding-top: 16px;
	padding-bottom: 16px;
}

#kc-update-profile-form .kc-input-label {
	display: inline;
}

/* Password policies info */
.pwd-policies {
	max-width: 420px;
	margin: 32px auto 32px;
	padding: 8px 16px 10px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
	border: 1px solid rgba(21, 189, 244, 0.25);
	border-radius: 8px;
	box-shadow: 0 0 0 1px rgba(21, 189, 244, 0.05), 0 4px 14px rgba(0, 0, 0, 0.35);
	text-align: left;
	color: #d6dde2;
	font-family: "Titillium Web", serif;
}

.pwd-policies__title {
	position: relative;
	margin: 0 0 6px 0;
	padding-left: 10px;
	font-size: 11px;
	font-weight: 700;
	color: #6b7a8d;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.pwd-policies__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	bottom: 2px;
	width: 3px;
	background: #15bdf4;
	border-radius: 2px;
	box-shadow: 0 0 6px rgba(21, 189, 244, 0.6);
}

/* Browser compatibility warning overlay */
#browser-warning {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(11, 17, 25, 0.92);
}

#browser-warning-box {
	max-width: 460px;
	padding: 36px 44px;
	background: rgba(20, 30, 45, 0.97);
	border: 1px solid rgba(21, 189, 244, 0.3);
	border-radius: 8px;
	text-align: center;
	color: #bec4c8;
	font-family: "Titillium Web", serif;
}

#browser-warning-icon {
	font-size: 48px;
	color: #f5a623;
	margin-bottom: 20px;
}

#browser-warning-box strong {
	display: block;
	margin-bottom: 16px;
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
}

#browser-warning-box p {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 24px;
}

#browser-warning-close {
	padding: 8px 24px;
	background: transparent;
	border: 1px solid rgba(21, 189, 244, 0.5);
	border-radius: 4px;
	color: #15bdf4;
	font-family: "Titillium Web", serif;
	font-size: 13px;
	cursor: pointer;
}

#browser-warning-close:hover {
	background: rgba(21, 189, 244, 0.1);
}

.pwd-policies__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 12px;
}

.pwd-policies__item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 3px 0;
	font-size: 12px;
	line-height: 1.3;
	color: #cfd6db;
	transition: color 0.2s ease;
}

.pwd-policies__item + .pwd-policies__item {
	border-top: none;
}

.pwd-policies__item--match {
	grid-column: auto;
	margin-top: 0;
	padding-top: 0;
	border-top: none !important;
}

.pwd-policies__icon {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
}

.pwd-policies__icon--pending {
	display: block;
	fill: none;
	stroke: #6b7280;
	transition: opacity 0.2s ease;
}

.pwd-policies__icon--valid {
	display: none;
	fill: #22c55e;
	filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.5));
}

.pwd-policies__item--valid .pwd-policies__icon--pending {
	display: none;
}

.pwd-policies__item--valid .pwd-policies__icon--valid {
	display: block;
}

.pwd-policies__item--valid {
	color: #d1fae5;
}

.back-to-login-wrapper {
    width: 100%;
    text-align: center;
}

.back-to-login-link {
    font-size: 15px;
    font-weight: 600;
}

#kc-form-wrapper > .alert {
    margin-bottom: 48px;
}

#kc-reset-password-form {
    margin-top: 0;
}

#kc-reset-password-form .kc-form-options {
    margin-top: 28px;
}

#kc-reset-password-form #kc-form-buttons {
    margin-top: 0;
}


/* Submit button disabled state */
#kc-submit:disabled,
#kc-login:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

/* Identity-first login : formulaire à un seul champ (login seul, ou mot de passe seul) */
.kc-form--single-field .kc-form-options {
	margin-top: 0;
	text-align: left;
}

.kc-form--single-field .kc-form-buttons-login {
	margin-top: 0;
}

.kc-form--single-field .checkbox {
	width: auto;
}

.kc-form--single-field .kc-form-options-wrapper {
	width: 100%;
	margin-left: 0;
	text-align: left;
}

.kc-input-error {
	display: block;
	margin-top: -12px;
	margin-bottom: 20px;
	font-size: 13px;
	line-height: 1.4;
	color: #fca5a5;
	text-align: left;
}

/* Rappel du login saisi à l'étape précédente */
.kc-attempted-username {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-sizing: border-box;
	width: 100%;
	padding: 12px 13px;
	margin-bottom: 20px;
	background: rgba(255, 255, 255, 0.06);
	border: solid 1px rgba(255, 255, 255, 0.15);
	border-radius: 3px;
	text-align: left;
}

.kc-attempted-username__value {
	overflow: hidden;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.kc-attempted-username__change {
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 600;
}

.kc-attempted-username__change:hover {
	color: #ffffff;
	text-decoration: underline;
}

/* Fournisseurs d'identité externes */
.kc-social {
	width: 100%;
	max-width: 360px;
	margin: 0 auto;
}

.kc-social-separator {
	display: block;
	margin-bottom: 16px;
	font-size: 13px;
	color: #8b949e;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.kc-social-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kc-social-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	height: 47px;
	padding: 0 20px;
	background: transparent;
	border: solid 1px rgba(21, 189, 244, 0.5);
	border-radius: 4px;
	color: #15bdf4;
	font-family: "Titillium Web", serif;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	transition-property: all;
	transition-duration: 0.3s;
}

.kc-social-button:hover {
	background: rgba(21, 189, 244, 0.12);
	color: #ffffff;
}

.kc-social-logo {
	font-size: 18px;
}

.kc-social-button svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	fill: currentColor;
}

@media (max-width: 600px) {
	.kc-content-wrapper {
		padding: 48px 28px 40px;
		width: 100%;
	}

	.alert {
		margin-top: 32px;
		margin-bottom: 16px;
	}

	.kc-form-options {
		margin-top: 20px;
	}

	.kc-button {
		margin-top: 24px;
		width: 100%;
	}

	.kc-input {
		margin-bottom: 12px;
	}

	.kc-maintenance {
		gap: 10px;
		padding: 12px 14px;
	}

	.kc-maintenance__icon {
		font-size: 18px;
	}

	.kc-maintenance__text {
		font-size: 13px;
	}

	.kc-social {
		max-width: 100%;
	}
}
