/* ==========================================================================
   Espace adhérent : page de connexion
   Toutes les règles sont limitées à #adherent et préfixées « adh-login- »
   pour ne jamais entrer en conflit avec les CSS du site.

   Sommaire :
   1. Base
   2. Mise en page
   3. Carte de connexion
   4. Champs du formulaire
   5. Bouton ENTRER
   6. Message et lien de retour
   6 bis. Page affichée dans le site
   7. Petits écrans
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. BASE
   -------------------------------------------------------------------------- */

#adherent.adh-login-page {
	min-height: 100%;
	margin: 0;
	padding: 0;
	font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	color: #0d3b5c;
	background: #ffffff;
}

#adherent.adh-login-page *,
#adherent.adh-login-page *:before,
#adherent.adh-login-page *:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   2. MISE EN PAGE : la carte est centrée dans la fenêtre
   -------------------------------------------------------------------------- */

#adherent .adh-login-scene {
	min-height: 100vh;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	padding: 40px 20px;
}

#adherent .adh-login-bloc {
	width: 100%;
	max-width: 560px;
}


/* --------------------------------------------------------------------------
   3. CARTE DE CONNEXION
   -------------------------------------------------------------------------- */

/* L'ombre détache la carte du fond blanc de la page. */
#adherent .adh-login-carte {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	width: 100%;
	overflow: hidden;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 24px 56px rgba(2, 30, 50, .22), 0 4px 14px rgba(2, 30, 50, .12);
}

/* Partie gauche : logo sur fond bleu nuit avec bandes diagonales */
#adherent .adh-login-visuel {
	-ms-flex: 0 0 46%;
	flex: 0 0 46%;
	min-height: 320px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	padding: 24px 14px;
	text-align: center;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0) 50%, rgba(120, 205, 235, .07) 50%, rgba(120, 205, 235, .07) 60%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(135deg, rgba(255, 255, 255, 0) 64%, rgba(120, 205, 235, .13) 64%, rgba(120, 205, 235, .13) 82%, rgba(255, 255, 255, 0) 82%),
		linear-gradient(135deg, rgba(255, 255, 255, 0) 86%, rgba(120, 205, 235, .06) 86%),
		linear-gradient(155deg, #074666 0%, #03304c 38%, #02273e 70%, #011e31 100%);
}

#adherent .adh-login-visuel-logo {
	display: block;
	width: 78%;
	max-width: 172px;
	height: auto;
}

#adherent .adh-login-visuel-txt {
	margin: 14px 0 0 0;
	font-size: 13.5px;
	line-height: 1.42;
	color: #e7f2f8;
}

/* Partie droite : formulaire */
#adherent .adh-login-form {
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	padding: 30px 28px 24px 28px;
	background: linear-gradient(135deg, #ffffff 0%, #ffffff 62%, #f2fafd 100%);
}

/* Logo et accroche réservés aux petits écrans (voir partie 7) */
#adherent .adh-login-logo-mobile {
	display: none;
	width: 120px;
	height: auto;
	margin: 0 auto 12px auto;
}

#adherent .adh-login-accroche-mobile {
	display: none;
	margin: 0 0 20px 0;
	font-size: 13px;
	line-height: 1.4;
	color: #4a6b80;
}

#adherent .adh-login-titre {
	margin: 0 0 20px 0;
	font-size: 27px;
	font-weight: 400;
	letter-spacing: .5px;
	color: #0d3b5c;
}


/* --------------------------------------------------------------------------
   4. CHAMPS DU FORMULAIRE
   -------------------------------------------------------------------------- */

#adherent #adh-login-formulaire {
	margin: 0;
	padding: 0;
}

#adherent .adh-login-champ {
	position: relative;
	margin-bottom: 13px;
}

/* Icône posée à gauche, à l'intérieur du champ */
#adherent .adh-login-ico {
	position: absolute;
	left: 15px;
	top: 50%;
	margin-top: -9px;
	width: 18px;
	height: 18px;
	fill: #0d3b5c;
	pointer-events: none;
}

#adherent .adh-login-saisie {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px 0 45px;
	border: 1px solid #cfe4ee;
	border-radius: 11px;
	background: #ffffff;
	font-family: inherit;
	font-size: 16px;
	color: #0d3b5c;
	outline: none;
	-webkit-transition: border-color .2s ease, box-shadow .2s ease;
	transition: border-color .2s ease, box-shadow .2s ease;
}

#adherent .adh-login-saisie::-webkit-input-placeholder { color: #8a9aa6; }
#adherent .adh-login-saisie::-moz-placeholder { color: #8a9aa6; opacity: 1; }
#adherent .adh-login-saisie:-ms-input-placeholder { color: #8a9aa6; }
#adherent .adh-login-saisie::placeholder { color: #8a9aa6; }

#adherent .adh-login-saisie:focus {
	border-color: #12a8be;
	box-shadow: 0 0 0 4px rgba(18, 168, 190, .16);
}

/* Champ en erreur (classe ajoutée par adh_login.js) */
#adherent .adh-login-saisie.adh-login-saisie-erreur {
	border-color: #d9534f;
	box-shadow: 0 0 0 4px rgba(217, 83, 79, .14);
}


/* --------------------------------------------------------------------------
   5. BOUTON ENTRER
   -------------------------------------------------------------------------- */

#adherent .adh-login-bouton {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	margin: 16px 0 0 0;
	padding: 0;
	border: none;
	border-radius: 24px;
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #ffffff;
	background: linear-gradient(90deg, #017c98 0%, #12a8be 55%, #21c9dc 100%);
	box-shadow: 0 8px 20px rgba(1, 124, 152, .32);
	-webkit-transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

#adherent .adh-login-ico-bouton {
	width: 19px;
	height: 19px;
	margin-right: 10px;
	fill: #ffffff;
}

#adherent .adh-login-bouton:hover {
	-webkit-filter: brightness(1.06);
	filter: brightness(1.06);
	-webkit-transform: translateY(-2px);
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(1, 124, 152, .42);
}

#adherent .adh-login-bouton:active {
	-webkit-transform: translateY(1px);
	transform: translateY(1px);
	box-shadow: 0 5px 14px rgba(1, 124, 152, .35);
}

#adherent .adh-login-bouton:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(18, 168, 190, .30), 0 8px 20px rgba(1, 124, 152, .32);
}

/* Bouton désactivé pendant l'envoi du formulaire */
#adherent .adh-login-bouton[disabled] {
	cursor: default;
	opacity: .7;
	-webkit-transform: none;
	transform: none;
}


/* --------------------------------------------------------------------------
   6. MESSAGE ET LIEN DE RETOUR
   -------------------------------------------------------------------------- */

/* Lien « Mot de passe oublié ? », juste sous le bouton ENTRER */
#adherent .adh-login-oubli {
	margin: 14px 0 0 0;
	text-align: center;
	font-size: 14px;
	line-height: 1.4;
}

#adherent .adh-login-oubli a {
	color: #0a6d86;
	text-decoration: none;
}

#adherent .adh-login-oubli a:hover {
	color: #12a8be;
	text-decoration: underline;
}

/* Message d'information (orange). La hauteur minimale évite que la carte
   change de taille quand un message apparaît. */
#adherent .adh-login-message {
	min-height: 20px;
	margin: 12px 0 0 0;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: #e07b1d;
}

/* Message d'erreur (rouge) */
#adherent .adh-login-message.adh-login-message-erreur {
	color: #c9302c;
}

/* Ligne sous la carte : « Retour au site » à gauche, « Créer un compte » à droite */
#adherent .adh-login-pied {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	margin: 24px 0 0 0;
	padding: 0 4px;
	/* Assez grand pour être vu : c'est par ce lien qu'un client crée son compte */
	font-size: 16px;
}

/* Lien affiché sous le message « compte pas encore activé » */
#adherent .adh-login-renvoi {
	margin: 8px 0 0 0;
	text-align: center;
	font-size: 14px;
}

#adherent .adh-login-renvoi a {
	color: #0a6d86;
	font-weight: 700;
}

#adherent .adh-login-retour,
#adherent .adh-login-inscription {
	margin: 0;
	line-height: 1.6;
}

#adherent .adh-login-inscription {
	color: #5b7083;
}

#adherent .adh-login-retour a,
#adherent .adh-login-inscription a {
	color: #0a6d86;
	text-decoration: none;
}

#adherent .adh-login-inscription a {
	font-weight: 700;
}

#adherent .adh-login-retour a:hover,
#adherent .adh-login-inscription a:hover {
	color: #12a8be;
	text-decoration: underline;
}


/* --------------------------------------------------------------------------
   6 bis. PAGE AFFICHÉE DANS LE SITE (entre l'en-tête et le pied du site)
   Le bloc #adherent n'est plus le <body> mais un bloc de la page : il prend
   toute la largeur sous l'en-tête (le site est mis en page avec des blocs
   flottants) et la carte n'est plus centrée dans la hauteur de la fenêtre.
   -------------------------------------------------------------------------- */

#adherent.adh-site {
	display: block;
	float: left;
	clear: both;
	width: 100%;
	min-height: 0;
	text-align: left;
	line-height: normal;
}

#adherent.adh-site .adh-login-scene {
	min-height: 0;
	padding: 40px 20px 48px 20px;
}

/* Bloc qui entoure le pied du site (includes/adh_site_pied.php). Il est
   flottant comme les blocs du site, pour contenir tout le pied : sa position
   est mesurée par js/adh_site.js, qui colle le pied en bas de la fenêtre. */
#adh-site-pied {
	display: block;
	float: left;
	clear: both;
	width: 100%;
}

/* Un seul lien sous la carte : il est centré */
#adherent.adh-site .adh-login-pied {
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}


/* --------------------------------------------------------------------------
   7. PETITS ÉCRANS
   -------------------------------------------------------------------------- */

/* Tablette portrait et smartphone : la partie bleue disparaît, le logo passe
   au-dessus du formulaire. */
@media screen and (max-width: 600px) {
	#adherent .adh-login-scene {
		-webkit-box-align: start;
		-ms-flex-align: start;
		align-items: flex-start;
		padding: 28px 14px;
	}

	#adherent.adh-site .adh-login-scene {
		padding: 28px 14px 36px 14px;
	}

	#adherent .adh-login-bloc {
		max-width: 420px;
	}

	#adherent .adh-login-visuel {
		display: none;
	}

	#adherent .adh-login-logo-mobile,
	#adherent .adh-login-accroche-mobile {
		display: block;
	}

	#adherent .adh-login-form {
		padding: 28px 22px 22px 22px;
		text-align: center;
	}

	#adherent .adh-login-titre {
		font-size: 23px;
		margin-bottom: 18px;
	}

	#adherent .adh-login-saisie {
		height: 50px;
		text-align: left;
	}

	#adherent .adh-login-bouton {
		height: 52px;
	}

	/* Les deux liens sous la carte passent l'un sous l'autre, centrés */
	#adherent .adh-login-pied {
		display: block;
		text-align: center;
	}

	#adherent .adh-login-inscription {
		margin-top: 6px;
	}
}
