*{
	font-family: "Baloo Tamma 2", system-ui;
	font-optical-sizing: auto;
	font-weight: bold;
	font-style: normal;
	transition: all ease .1s;
	-webkit-transition: all ease .1s;
	-moz-transition: all ease .1s;
	-o-transition: all ease .1s;
}

html, body{
	width: 100%;
	height: 100%;
}

body{
	margin: 0;
	/*background-image: linear-gradient(15deg, #13547a 0%, #80d0c7 100%);*/
	background-image: url('../img/back-login.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

*::-webkit-scrollbar{
    width: 12.5px;
}
 
*::-webkit-scrollbar-track{
    background-color: #696969;   
}
 
*::-webkit-scrollbar-thumb{
    background-color: #C0C0C0;
}

/* Título del formulario */
h1{
	font-size: 1.3rem;
	color: #2F3F3F;
	margin-bottom: .15rem;
}

/* Subtítulo del formulario */
h2{
	font-size: 1rem;
	color: #3b70b2;
	margin-top: .1rem !important;
	text-align: center;
	font-weight: bolder;
	text-transform: uppercase;
}

h1, h2{
	text-align: center;	
	font-weight: 600;
}

/* Imagen del formulario */
img{
	display: block;
	margin: 0 auto;
}

/* Sección principal */
body > section{
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Formulario */
form {
	background-color: rgba(255, 255, 255, 0.2); 
	border-radius: 1rem;                 
	margin-bottom: 2.5%;
	display: flex;
	align-items: center;
	flex-direction: column;
	overflow: auto;
	max-height: 85vh;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(10px);   
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	animation-name: showForm;
	animation-duration: .5s;
}

/* Secciones del formulario */
form section:not(.rememberData){
	width: 100%;
	margin-top: 1%;
	margin-bottom: 1%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column-reverse;
}

/* Cajas de texto */
form input:not([type=submit]){
	background-color: transparent !important;
	outline: 0;
	border: 0;
	border-bottom: .1rem solid #262626;	
}

/* Etiquetas */
form label{
	position: relative;
	transition: all .2s;
	transform-origin: top left !important;
	cursor: pointer;
	text-align: left;
	user-select: none;
}

/* Cajas y etiquetas */
form input:not([type=submit]), form label{
	display: block;
	margin-bottom: .5rem;
	opacity: .5;
	color: #262626;
}

form input:not([type=submit]){
	text-transform: uppercase;
}

form input:focus, form input:focus + label{
	opacity: 1;
}

/* Cuando la caja de texto no tenga el enfoque */
form input:not(:focus) + label{
	transform: translateY(1.55em) scale(1.15) !important;
	opacity: .5;
}

/* Cuando la caja de texto tenga el enfoque */
form input:not(:placeholder-shown) + label{
	transform: translateY(0em) scale(1) !important;
	opacity: 1;
}

/* Opción para pedir ayuda por contraseña olvidada */
#forget{
	color: #111121;
	user-select: none;
}

/* Color de texto de fondo en las cajas de texto sin contenido */
::placeholder{
    color: snow;
}

/* Contenedor de los logos */
#logos{
	text-align: center;
}

/* Botón de envío */
form [type=submit]{
	display: block;
	background-color: #2e2759;
	color: #fff;
	text-transform: uppercase;
	margin: 0 auto;
	margin-top: 1%;
	border: 0;
	opacity: .8;
	padding: .35rem 2.5rem;
	transition: all ease .5s;
}

/* Slider para recordar los datos */
.slide{
	display: inline-flex;
	vertical-align: middle;
	border-radius: 1rem;
	user-select: none;
	transition: .5s ease;
}

#slider{
	margin: 1.5px;
}

#sliderBtn{
	background-color: snow;	
	display: flex;
	align-items: center;
	justify-content: center;
	color: #CD5C5C;
}

/* Clases para el cambio de color del fondo del slider */
.on{
	background-color: #008B8B;
}

.off{
	background-color: #CD5C5C;
}

/* GIF de espera */
.wait{
	width: 70px !important;
	min-width: 70px !important;
	max-width: 70px !important;
	display: block;
	margin: 0 auto;
}

/* Animación para el formulario de identificación */
@keyframes showForm{
	from{
		opacity: 0;
	}

	to{
		opacity: 1;
	}
}

/* Animación para el botón del formulario */
@keyframes animateButton{
	0%{
		transform: scale(1);
	}

	25%{
		transform: scale(.9);
	}

	50%{
		transform: scale(1);
	}

	75%{
		transform: scale(.9);
	}

	100%{
		transform: scale(1);
	}
}

/* Pantalla grande */
@media all and (min-width: 850px){
	*{
		font-size: 1rem;
	}

	img{
		width: 200px;
	}

	form{
		width: 40%;
		padding: .75rem;
	}

	form input:not([type=submit]), form label{
		width: 60%;
	}

	#slider{
		width: 50px;
		height: 25px;
	}

	#sliderBtn{
		width: 25px;
		height: 25px;
	}

	/* Clase para mover el botón del slider */
	.move{
		transform: translateX(25px);
		color: #008B8B !important;
	}
}

/* Pantalla chica */
@media all and (max-width: 850px){
	*{
		font-size: .95rem;
	}

	img{
		width: 120px;
	}

	form{
		width: 60%;
		padding: 1rem 2rem;
	}

	form input:not([type=submit]), form label{
		width: 80%;
	}

	#slider{
		width: 40px;
		height: 20px;
	}

	#sliderBtn{
		width: 20px;
		height: 20px;
	}

	/* Clase para mover el botón del slider */
	.move{
		transform: translateX(20px);
		color: #008B8B !important;
	}
}

/* Cursor sobre elementos */
@media (hover: hover){
	form [type=submit]:hover{
	    opacity: 1;
	    animation-name: animateButton;
	    animation-duration: 1.5s;
	    animation-iteration-count: 2;
	}

	.slide:hover{
		filter: brightness(1.1);		
	}

	#forget:hover{
		scale: 1.1;
	}

	#forget:hover, 
	form [type=submit]:hover,
	.slide:hover{
		cursor: pointer;
	}
}