@import url(https://fonts.googleapis.com/css?family=Questrial);

:root{
	--accent-color: #d31145;
	--accent-color-dark: #b00d39;
	--primary-color: #53534a;
	--login-grey: #555555;
	--login-grey-border: #494949;
	/* Forma de los mensajes; los colores los pone la bootstrap.min.css del
	   proyecto (misma que la capa de cliente) para no desincronizar. */
	--msg-radius: 10px;
}

*{
	font-family: 'Questrial', sans-serif;
}

html{
	height: 100%;
	overflow: hidden;
}

body{
	background-image: url('../images/login/locsv-gray1.jpg');
	display: grid;
	padding: 0px !important;
	place-items: center;
	top: 0px !important;
	height: 100%;
	width: 100%;
	z-index: 50;
	overflow-x: hidden; 
    overflow-y: auto;
    
     /* Centrado y escalado de la imagen */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

input[type=text], input[type=password]{
	border-bottom: 1px solid var(--accent-color, #d31145) !important;
	webkit-box-shadow: 0 1px 0 0 var(--accent-color, #d31145) !important;
    box-shadow: 0 1px 0 0 var(--accent-color, #d31145) !important;
}

.btn-inverse {
    color: #ffffff !important;
    background-color: var(--login-grey, #555555) !important ;
    border-color: var(--login-grey-border, #494949) !important;
    text-transform: capitalize !important;
    border-radius: 8px !important;
    letter-spacing: 0.03em;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn-inverse:hover, .btn-inverse:focus {
    background-color: var(--login-grey-border, #494949) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.btn-inverse:active {
    transform: translateY(1px);
}

h5, .h5 {
    font-size: 14px !important;
}

.row{
	margin-bottom: 0px !important;
}

#addCompassXPS{
	background-color: var(--accent-color, #d31145);
	border-radius: 0px 0px 20px 20px;
	cursor: pointer;
	position: fixed;
	padding: 10px;
	left: 50px;
	animation: pulse 1s infinite;
}

#addCompassXPS p{
	text-align: center;
	font-size: 15px;
	color: white;
	letter-spacing: 0.1em;
}

#main-container{
	position: relative;
	top: 40px;
	width: 60vw;
	height: 70vh;
}

#main-sheet{
	background: rgba(255,255,255,0.8);
	display: flex;
	flex-direction: row;
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 52;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
}

/* Mismo alto/relleno que los demás botones del login (antes padding:1px los achicaba) */
.btnRestore{
	padding: 8px 12px !important;
}

/* Aire vertical de los botones (antes lo daba el .form-group que se removió) */
#initSession,
#restorePassForm > input{ margin: 6px 0; }

#loginBtn, #initSession{
	border: none !important;
	background-color: var(--accent-color, #d31145) !important;
	box-shadow: 0 2px 10px rgba(211, 17, 69, 0.28);
}

#loginBtn:hover, #initSession:hover,
#loginBtn:focus, #initSession:focus{
	background-color: var(--accent-color-dark, #b00d39) !important;
	box-shadow: 0 4px 14px rgba(211, 17, 69, 0.38);
}

#iRestore{
	color: var(--accent-color, #d31145);
	font-size: 50px;
}

#form-container{
	background-color: rgba(255, 255, 255, 0.9);
	justify-content: center;
	display: flex;
	flex-direction: column;
	align-content: center;
	height: 100%;
	width: 45%;
	z-index: 53;
	padding: 10px;
}

	.formGroup{
		width: 100% !important;
		display: flex;
		flex-direction: row;
		align-content: stretch;

	}

	.faLogin{
		height: 75px;
		line-height: 75px;
		white-space: nowrap;
	}

	.spanFa{
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.spanFa i{
		font-size: 20px;
		color: var(--accent-color, #d31145);
	}

	.loginInput{
		background: rgba(255, 255, 255, 0.5);
		border: none;
		border-bottom: 1px solid var(--accent-color, #d31145) !important;
		color: black;
		margin: 10px 0px;
		letter-spacing: 3px;
		font-size: 17px;
		padding: 0.5em 0.5em;
		width: 100%;
		border-radius: 6px 6px 0 0;
		transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	}

	.loginInput:focus{
		outline: none;
		background: rgba(255, 255, 255, 0.85);
		border-bottom-width: 2px !important;
		box-shadow: 0 2px 0 0 var(--accent-color, #d31145);
	}
	
#appContainer{
	display: flex;
	flex-direction: row;
}


#slide-container{
	height: 100%;
	width: 55%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

#default-slide{
	background-color: black;
	background-image: linear-gradient(rgba(0, 0, 0, 0.2),rgba(0, 0, 0, 1.0)),
					url("../images/login/laptop.jpg") ;
	background-size: cover;
	height: 100%;
	width: 55%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	z-index: 57;
}

#slider-loader{
	height: 100%;
	width: 55%;
	color: black;
	
	display: flex;
	position: absolute;
	vertical-align: middle;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	z-index: 55;
}

#gear-loader{
	font-size: 90px;
	animation-name: spin;
	animation-duration: 2000ms;
	animation-iteration-count: infinite;
	animation-timing-function: linear; 
}
	.carousel-item {
		background-position: center;	
		background-size: cover;
	}
	
	.carousel .indicators .indicator-item{
		width: 14px !important;
		height: 14px !important;
	}

	#indicatorBar{
		background: gray;
		width: 55%;
		height: 6px;
		position: absolute;
	}
	
	.indicator{
		
		background-color: white;
		margin: 0px 2px;
		height: 6px;
	}
	
	.btnSlide{
		color: white;
		font-size: 2.5em;
		margin: 15px;
		position: absolute;
		margin-top: 23%;
		text-shadow: 1px 1px 2px black,
					1px 2px 3px black;
		transition: ease-out 0.2s ;
		z-index: 54;
	}
	
	.btnSlide:hover{
		cursor: pointer;
		opacity: 0.5;
		text-shadow: 1px 1px 4px black,
					1px 2px 5px black;
	}
	
	#prevSlide{
		left: 0;
	}
	
	#nextSlide{
		right: 45%;
	}

	#title p{
		font-weight: bolder;
		font-size: 2em;
		letter-spacing: 0.1em;
		text-align: left !important;
	}
	
	#subtitle{
		transition: transform 0.6s ease;
	}

	#subtitle p{
		font-size: 1.5em;
		
	}

	.sliderText{
		color: white;
		text-shadow: 1px 1px 2px black,
					2px 2px 3px black;
		text-decoration: none;
		text-align: justify;
		margin: 20px;
	}


#footer{
	background: rgba(0,0,0,0.82);
	width: 100%;
	height: auto;
	position: fixed;
	bottom: 0px !important;
	padding: 0px !important;
}


/*=================== MEDIA QUERIES =========================*/
@media screen and (max-width: 1200px) {
    #slide-container{
		display: none;
	}
	
	.btnSlide{
		display: none;
	}
	
	#slider-loader{
		display: none;
	}

	#form-container{
		width: 100%;
	}
	
	#default-slide{
		display: none;
	}

	.btnSlide{
		display: none;
	}

}

@media screen and (max-width: 992px) {
    #main-container{
		width: 80vw;
		height: 65vh;
	}
	
}




/*================== EFFECTS =============================*/

@keyframes spin {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #gear-loader,
    #addCompassXPS,
    .fa-spin {
        animation: none !important;
    }
    .btn-inverse,
    .loginInput,
    #loginBtn, #initSession {
        transition: none !important;
    }
}

  /*======== EXTRAS ===============*/

  ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: black;
    opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: black;
}

::-ms-input-placeholder { /* Microsoft Edge */
    color: black;
}


/* =================== SLIDER ====================*/


/* Loader unificado de la plataforma (mismo estilo que la capa cliente) */
#globalLoader{
	position: fixed;
	inset: 0;
	z-index: 5000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.55);
}
#globalLoader .gl-box{
	background: #fff;
	border-radius: 12px;
	padding: 22px 30px;
	box-shadow: 0 6px 24px rgba(0,0,0,.18);
	text-align: center;
	color: #555;
}
#globalLoader .gl-box i{ font-size: 34px; color: var(--accent-color, #d31145); }


/* ==================================================================
   ALINEACIÓN UNIFORME (inputs / botones / alerts)
   Botones y contenedores de mensajes usan la MISMA rejilla que los inputs
   (col-1 gutter vacío + col-11), así comparten por construcción los mismos
   laterales del recuadro del input. No hacen falta márgenes mágicos.
   Solo separamos verticalmente los botones apilados de recuperar contraseña.
   ================================================================== */
#restorePassword #loginBtn{ margin-bottom: 12px; }


/* ==================================================================
   MENSAJES UNIFICADOS
   TODOS los mensajes del login son alerts .alert alert-* de Bootstrap,
   renderizados INLINE debajo de los botones de su pestaña:
   - server-side: #loginMessages (passSend / logout / error)
   - JS (recuperar contraseña / validaciones): renderAlert() -> .js-alert

   Los COLORES NO se tocan: se heredan de la bootstrap.min.css del proyecto
   (personalizada: success #8dc641, info #31708f, danger #e8124c,
   warning #fcf8e3) para quedar idénticos a los alerts de la capa de cliente.
   Aquí solo ajustamos la FORMA (radio, sombra, icono, cierre).
   (Este CSS solo se carga en el login, por eso se estiliza .alert directo.)
   ================================================================== */

.alert{
	border-radius: var(--msg-radius);
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
	box-sizing: border-box;
	width: 100%;
	padding: 12px 42px 12px 44px;
	margin: 0;
	margin-top: 10px;
	font-size: 14px;
	position: relative;
	line-height: 1.35;
}
.alert p,
.alert .alert-msg{ margin: 0; display: block; }
.alert > .fa{
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
}
.alert .close{
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	opacity: .85;
	font-size: 20px;
	text-shadow: none;
	color: inherit;
	line-height: 1;
}
.alert .close:hover{ opacity: 1; }

#globalLoader .gl-box .gl-text{ margin: 10px 0 0; font-weight: 600; }
