/**
 * Swift Team - gabarit Intranet : connexion intégrée (toolbar-r)
 * Reprend à l'identique l'apparence de l'ancien plugin « Identification en modale »,
 * avec les icônes hors des champs pour qu'elles restent visibles après un remplissage automatique.
 */

/* ---------- Boutons de la barre d'outils ---------- */

.tm-login-btn {
	display: inline-block;
	box-sizing: border-box;
	height: 26px;
	line-height: 24px;
	padding: 0 10px;
	margin: 0 4px 0 0;
	font-size: 12px;
	font-weight: normal;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	vertical-align: middle;
	border: 1px solid transparent;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}

.tm-login-btn:last-child {
	margin-right: 0;
}

.tm-login-btn i {
	margin-right: 4px;
}

/* liens des groupes (bleu) */
.tm-login-btn--link,
.tm-login-btn--link:visited {
	background-color: #0078d4;
	border-color: #0078d4;
	color: #fff;
}

.tm-login-btn--link:hover,
.tm-login-btn--link:focus {
	background-color: #000;
	border-color: #000;
	color: #fff;
}

/* connexion / déconnexion (neutre) */
.tm-login-btn--neutral,
.tm-login-btn--neutral:visited {
	background-color: #fff;
	border-color: #d9d9d9;
	color: #444;
}

.tm-login-btn--neutral:hover,
.tm-login-btn--neutral:focus {
	background-color: #f2f2f2;
	border-color: #bbb;
	color: #000;
}

.tm-toolbar .tm-login {
	display: inline-block;
	vertical-align: middle;
}

.tm-toolbar .uk-float-right > .uk-panel + .tm-login,
.tm-toolbar .uk-float-right > * + .tm-login {
	margin-left: 10px;
}

/* ---------- Fenêtre de connexion ---------- */

#lp-overlay {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.7);
	background: radial-gradient(ellipse at center center, rgba(221, 221, 221, 0.8) 0%, rgba(57, 57, 57, 0.7) 60%, rgba(0, 0, 0, 0.7) 100%);
	z-index: 99998;
}

.lp-wrapper {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	width: 360px;
	max-width: 100%;
	max-height: 100%;
	overflow-y: auto;
	padding: 30px;
	box-sizing: border-box;
	background: #fff;
	color: #999;
	text-align: left;
	border-radius: 3px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
	transform: translate(-50%, -50%);
	z-index: 99999;
}

/* secours sans JavaScript : lien #login */
#login:target #lp-overlay,
#login:target #lp-popup,
#lp-overlay.lp-open,
#lp-popup.lp-open {
	display: block;
}

html.lp-locked {
	overflow: hidden;
}

.lp-wrapper button.lp-close {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	color: #999;
	font-size: 28px;
	line-height: 44px;
	cursor: pointer;
}

.lp-wrapper button.lp-close:hover {
	color: #666;
}

.lp-wrapper h3 {
	margin: 20px 0 24px;
	color: #393939;
	font-size: 18px;
	font-weight: normal;
	line-height: 1.3;
}

.lp-wrapper .lp-form {
	margin: 0;
}

.lp-register-intro {
	padding-right: 20px;
}

.lp-register-intro a {
	color: #666;
	text-decoration: none;
}

.lp-register-intro a {
	color: #444;
}

.lp-register-intro a:hover {
	color: #000;
}

/* champs */
.lp-field-wrapper label {
	display: block;
	margin: 13px 0 6px;
}

.lp-input {
	position: relative;
}

.lp-input-icon {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 8px;
	width: 20px;
	background-repeat: no-repeat;
	background-position: center center;
	pointer-events: none;
	z-index: 1;
}

.lp-input-icon--username {
	background-image: url(../images/login/icon-username.svg);
}

.lp-input-icon--password {
	background-image: url(../images/login/icon-password.svg);
}

.lp-field-wrapper input.lp-input-text {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 8px 8px 8px 36px;
	box-sizing: border-box;
	background: #f9f9f9;
	color: #666;
	font-size: 14px;
	line-height: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 0;
	outline: none;
	box-shadow: none;
}

.lp-field-wrapper input.lp-input-text--plain {
	padding-left: 8px;
}

.lp-field-wrapper input.lp-input-text:focus {
	border-color: #bbb;
	box-shadow: none;
}

/* remplissage automatique : on garde le fond gris clair et la couleur du texte */
.lp-field-wrapper input.lp-input-text:-webkit-autofill,
.lp-field-wrapper input.lp-input-text:-webkit-autofill:hover,
.lp-field-wrapper input.lp-input-text:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #f9f9f9 inset;
	box-shadow: 0 0 0 1000px #f9f9f9 inset;
	-webkit-text-fill-color: #666;
	caret-color: #666;
	transition: background-color 600000s 0s;
}

.lp-field-wrapper input.lp-input-text:autofill {
	box-shadow: 0 0 0 1000px #f9f9f9 inset;
}

/* case « Rester connecté » */
.lp-remember {
	margin-top: 13px;
}

.lp-remember input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 18px;
	height: 18px;
	margin: 0;
}

.lp-remember label {
	display: inline-block;
	margin: 0;
	padding: 0 0 0 24px;
	cursor: pointer;
	background: url(../images/login/checkbox.png) no-repeat left center;
}

.lp-remember input[type="checkbox"]:checked + label {
	background-image: url(../images/login/checkbox-checked.png);
}

.lp-remember input[type="checkbox"]:focus + label {
	outline: 1px dotted #999;
}

/* bouton et liens d'aide */
.lp-button-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
}

.lp-button-wrapper .lp-button {
	padding: 9px 30px;
	margin: 0;
	border: none;
	border-radius: 0;
	background: #5cb85c;
	color: #fff;
	font-size: 110%;
	cursor: pointer;
}

.lp-button-wrapper .lp-button:hover,
.lp-button-wrapper .lp-button:focus {
	background-color: #80c780;
}

@media (max-width: 400px) {
	.lp-wrapper {
		width: 100%;
		padding: 24px 20px;
	}
}
