/* Pages Connexion / Inscription — Espace client */

body.ec-auth-page,
body.ec-auth-page .ec-auth,
body.ec-auth-page .ec-auth__footer,
body.ec-auth-page .select2-container,
body.ec-auth-page .select2-dropdown {
	font-family: "Open Sans", sans-serif;
}

body.ec-auth-page.designed .ec-auth .ec-auth__title,
body.ec-auth-page.designed .ec-auth h1 {
	font-family: "Open Sans", sans-serif;
}

.ec-auth-page .main-ec.full-width {
	margin: 0;
	max-width: none;
	padding: 0;
}

.ec-auth-page.designed .main-ec.full-width {
	margin: 0;
}

/* Layout principal */
.ec-auth {
	display: grid;
	grid-template-columns: 44fr 56fr;
	gap: 32px;
	min-height: 100vh;
	font-family: "Open Sans", sans-serif;
	color: #1e1e1e;
	background: #ffffff;
	padding: 0 0 0 40px;
}

@media (max-width: 1024px) {
	.ec-auth {
		padding: 0;
	}
}

.ec-auth--no-media {
	grid-template-columns: 1fr;
}

.ec-auth--no-media .ec-auth__panel {
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 1024px) {
	.ec-auth {
		grid-template-columns: 1fr;
		min-height: auto;
	}
}

/* Colonne formulaire */
.ec-auth__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 0;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	.ec-auth__panel {
		padding: 40px 32px;
		max-width: none;
	}
}

@media (max-width: 767px) {
	.ec-auth__panel {
		padding: 32px 16px;
	}
}

/* Lien retour */
.ec-auth__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 32px;
	font-size: 14px;
	font-weight: 700;
	color: #717680;
	text-decoration: none;
}

.ec-auth__back:hover,
.ec-auth__back:focus {
	color: #535862;
	text-decoration: none;
}

.ec-auth__back-icon {
	font-size: 18px;
	line-height: 1;
	color: #717680;
}

/* Titre */
.ec-auth .ec-auth__title {
	font-family: "Open Sans", sans-serif;
	margin: 0 0 32px;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: #1e1e1e;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.ec-auth__title {
		font-size: 28px;
		margin-bottom: 24px;
	}
}

/* Colonne image */
.ec-auth__media {
	position: relative;
	min-height: 100%;
	overflow: hidden;
}

.ec-auth__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100vh;
	object-fit: cover;
	object-position: center;
}

@media (max-width: 1024px) {
	.ec-auth__media {
		order: 2;
		min-height: 240px;
	}

	.ec-auth__image {
		min-height: 240px;
		height: auto;
	}
}

@media (max-width: 767px) {
	.ec-auth__media {
		min-height: 200px;
	}

	.ec-auth__image {
		min-height: 200px;
		height: auto;
	}
}

/* Pied de page auth */
.ec-auth__footer {
	margin-top: 16px;
	font-size: 16px;
	color: #535862;
	text-align: center;
}

.ec-auth__footer-link {
	font-weight: 700;
	color: #e6202d;
	text-decoration: none;
}

.ec-auth__footer-link:hover,
.ec-auth__footer-link:focus {
	color: #c91a26;
	text-decoration: underline;
}

/* Formulaire connexion */
.ec-auth #loginform {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.ec-auth #loginform label {
	display: block;
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 600;
	color: #535862;
}

.ec-auth #loginform input[type="text"],
.ec-auth #loginform input[type="password"] {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid rgba(22, 22, 22, 0.12);
	border-radius: 8px;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	color: #1e1e1e;
	background: #ffffff;
	box-sizing: border-box;
}

.ec-auth #loginform input[type="text"]:focus,
.ec-auth #loginform input[type="password"]:focus {
	outline: none;
	border-color: #e6202d;
}

.ec-auth .login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}

.ec-auth .login-remember label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 400;
	font-size: 16px;
	color: #535862;
}

.ec-auth .login-remember input[type="checkbox"] {
	width: auto;
	min-height: auto;
	margin: 0;
}

.ec-auth__forgot {
	display: inline-block;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 700;
	color: #1e1e1e;
	text-decoration: none;
}

.ec-auth__forgot:hover,
.ec-auth__forgot:focus {
	color: #000000;
	text-decoration: underline;
}

.ec-auth .login-submit {
	margin: 0;
}

.ec-auth .login-submit input[type="submit"],
.ec-auth #loginform input[type="submit"] {
	display: block;
	width: 100%;
	min-height: 48px;
	margin-top: 8px;
	padding: 12px 24px;
	border: 0;
	border-radius: 50px;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	background: #e6202d;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ec-auth .login-submit input[type="submit"]:hover,
.ec-auth .login-submit input[type="submit"]:focus,
.ec-auth #loginform input[type="submit"]:hover,
.ec-auth #loginform input[type="submit"]:focus {
	background: #c91a26;
}

/* Formulaire inscription */

.ec-auth .espace-client-form {
	display: flex;
	flex-wrap: wrap;
	column-gap: 16px;
	row-gap: 12px;
	margin: 0;
}

.ec-auth .espace-client-form label {
	display: block;
	width: 100%;
	margin-top: 0;
	margin-bottom: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: #535862;
}

.ec-auth .espace-client-form label.half {
	width: calc(50% - 8px);
}

.ec-auth .espace-client-form .required-field {
	display: inline;
	font-weight: 400;
	color: #535862;
}

.ec-auth .espace-client-form .wpcf7-form-control-wrap {
	display: block;
	margin-top: 6px;
}

@media (max-width: 767px) {
	.ec-auth .espace-client-form label.half {
		width: 100%;
	}
}

.ec-auth .espace-client-form input[type="text"],
.ec-auth .espace-client-form input[type="email"],
.ec-auth .espace-client-form input[type="password"] {
	display: block;
	width: 100%;
	min-height: 48px;
	margin-top: 0;
	padding: 12px 16px;
	border: 1px solid rgba(22, 22, 22, 0.12);
	border-radius: 8px;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #1e1e1e;
	background: #ffffff;
	box-sizing: border-box;
}

.ec-auth .espace-client-form select {
	display: block;
	width: 100%;
	height: 48px;
	min-height: 48px;
	margin-top: 0;
	padding: 0 40px 0 16px;
	border: 1px solid #bfbfbf;
	border-radius: 8px;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.25;
	color: #1e1e1e;
	background-color: #ffffff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23535862' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.ec-auth .espace-client-form select:invalid {
	color: #717680;
}

.ec-auth .espace-client-form select option {
	color: #1e1e1e;
}

.ec-auth .espace-client-form select option[value=""] {
	color: #717680;
}

.ec-auth .espace-client-form #password-strength {
	display: none;
}

.ec-auth .espace-client-form input:focus,
.ec-auth .espace-client-form select:focus {
	outline: none;
	border-color: #e6202d;
}

.ec-auth .espace-client-form .cgu-line {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	margin-top: 4px;
	margin-bottom: 0;
	font-weight: 400;
	font-size: 16px;
	color: #535862;
}

.ec-auth .espace-client-form .cgu-line input[type="checkbox"] {
	width: auto;
	min-height: auto;
	margin-top: 5px;
	flex-shrink: 0;
}

.ec-auth .espace-client-form .cgu-line__text {
	flex: 1;
	min-width: 0;
	line-height: 1.4;
	margin-top: 0;
}

.ec-auth .espace-client-form .cgu-line a {
	font-weight: 700;
	color: #e6202d;
	text-decoration: none;
}

.ec-auth .espace-client-form .cgu-line a:hover,
.ec-auth .espace-client-form .cgu-line a:focus {
	text-decoration: underline;
}

.ec-auth .espace-client-form .wpcf7-submit {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 4px 0 0;
	padding: 12px 24px;
	border: 0;
	border-radius: 50px;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 600;
	text-transform: none;
	color: #ffffff;
	background: #e6202d;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ec-auth .espace-client-form .wpcf7-submit:hover:not([disabled]),
.ec-auth .espace-client-form .wpcf7-submit:focus:not([disabled]) {
	background: #c91a26;
}

.ec-auth .espace-client-form .wpcf7-submit[disabled] {
	opacity: 1;
	background: #d5d7da;
	color: #ffffff;
	cursor: not-allowed;
}

.ec-auth .espace-client-form #password-strength {
	width: 100%;
	margin-top: 0;
}

.ec-auth .select2-container {
	margin-top: 8px;
}

.ec-auth .select2-container .select2-selection--single {
	min-height: 48px;
	border: 1px solid rgba(22, 22, 22, 0.12);
	border-radius: 8px;
}

.ec-auth .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 46px;
	padding-left: 16px;
	color: #1e1e1e;
}

.ec-auth .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 46px;
}

/* Notifications flash */
.ec-auth .w-notifs {
	margin-bottom: 16px;
}
