:root{
	--main: #21759b;
}

body.login-password-protected #login{
	position: fixed;
	bottom: 2em;
	right: 2em;

	border:3px solid var(--main);
	background:rgba(255,255,255,0.7);
	text-align: center;
	padding: 0em 5em;
  border-radius: 8px;
  z-index: 10;
}

body.login-password-protected #login p.submit{
	text-align: center;
}

body.login-password-protected #loginform{
  background:none;
  border:none;
  padding-top: 0.5rem;
}

body.login-password-protected #loginform input[type=password]{
	text-align: center;
	font-size: 1.5rem;
	color:var(--main);
	border:1px solid var(--main);
}

body.login-password-protected #wp-submit{
	background:#FFF;
	border:1px solid var(--main);
	border-radius: 0;
	box-shadow: none;
	text-shadow: none;
	color:var(--main);
	text-transform: uppercase;
	line-height: 1em;
	padding: 0.7em 1.3em;
	height: auto;
	font-weight: bold;
}

body.login-password-protected #wp-submit:hover{
	background:var(--main);
	color:#FFF;
}

body.login-password-protected #login_titre{
	margin-bottom: 0em;
	margin-top: 2em;
}

body.login-password-protected #login_error{
	position: fixed;
	left: 1em;
	width: 20%;
	bottom: 1em;
	background:rgba(194,11,11,0.7);
	padding:2em;
	color:#FFF;
	text-align:left; 
	font-size: 1.5em;
	line-height: 1.5em;
	font-weight: 100;
}

body.login-password-protected #login_error a{
	color:#FFF;
}


/* Slide */

#cabotix_slide_login_pan_scan{
	position: relative;
	width: 100vw;
	height: 100vh;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

#cabotix_slide_login_pan_scan > img{
	position: absolute;
	left: 0;
	display: none !important;
	opacity:0;
}

#cabotix_slide_login_pan_scan > img.portrait{
	height: auto;
	width: 100vw;
}

#cabotix_slide_login_pan_scan > img.paysage{
	width: 100vw;
	height: auto;
}

#cabotix_slide_login_pan_scan > img.active{
	display: block !important;
}

#cabotix_slide_login_pan_scan > img.zoomed{
	animation: zoom_pan_and_scan 12s 1;
  	animation-timing-function: linear;
}

@keyframes zoom_pan_and_scan {
  from {
    -webkit-transform: scale(1.1) translate(4%,0);
	-ms-transform: scale(1.1) translate(4%,0);
	-o-transform: scale(1.1) translate(4%,0);
	transform: scale(1.1) translate(4%,0);
  }

  to {
    -webkit-transform: scale(1) translate(0%,0);
	-ms-transform: scale(1) translate(0%,0);
	-o-transform: scale(1) translate(0%,0);
	transform: scale(1) translate(0%,0);
  }
}


/* <= à sm -> Tablettes & Smartphones */
@media (max-width: 991px) {

	body.login-password-protected #login{
		left: 0;
		right: 0;
		border-left: none;
		border-right: none;
		border-bottom: none;
		height: 40vh;
		bottom: 0vh;
		display: flex;
		align-items: center;
		justify-content: center;	
		flex-direction: column;
    border-radius: 0;
    width: 100vw;
    background:#FFF;
    padding: 0;
	}

	body.login-password-protected #login_titre img{
		width: 70vw;
		height: auto;
	}

  body.login-password-protected #loginform{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

  }

  #loginform label{
    font-size: 2.3vh;
  }

	#loginform,
	#loginform p,
	body.login-password-protected #wp-submit,
	body.login-password-protected #loginform input[type=password]{
		font-size: 	3vh;
    border-radius: 7px;
	}

  body.login-password-protected #loginform input[type=password]{
    height: 7vh;
    width: 70vw;
  }

	#cabotix_slide_login_pan_scan{
		display: -webkit-flex;
		display: -moz-flex;
		display: -ms-flex;
		display: -o-flex;
		display: flex;	
		-ms-align-items: 	center;
		align-items: 	center;
		justify-content: center;	
	}

	#cabotix_slide_login_pan_scan > img{
		left: auto;
	}

}

@media (max-width: 991px) and (orientation: landscape) {
	#cabotix_slide_login_pan_scan > img.portrait{
		width: 100vw;
		height: auto;
	}

	#cabotix_slide_login_pan_scan > img.paysage{
		width: 100vw;
		height: auto;
	}

	body.login-password-protected #login_titre img{
		width: 30vw;
	}

}

@media (max-width: 991px) and (orientation: portrait) {

	#cabotix_slide_login_pan_scan{
		height: 66vh;
	}

	#cabotix_slide_login_pan_scan > img.portrait{
		height: 80vh;
		width: auto;
	}

	#cabotix_slide_login_pan_scan > img.paysage{
		width: auto;
		height: 66vh;
	}
}