/**=============================================================================
 *
 *	Filename: login.css
 *
 *	Description: Estilos del login (gama blanco y negro, acorde al logo)
 *
 *===========================================================================**/

:root{
	--negro: #0a0a0a;
	--negro-suave: #1c1c1c;
	--gris: #6b6b6b;
	--gris-claro: #d9d9d9;
	--blanco: #ffffff;
}

*, *::before, *::after{ box-sizing: border-box; }

html, body{
	margin: 0;
	padding: 0;
	height: 100%;
}

body{
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	color: var(--negro);
	background: var(--negro);
}

/* Video de fondo en escala de grises con velo oscuro */
#video_background{
	position: fixed;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%);
	object-fit: cover;
	filter: grayscale(100%) contrast(1.1);
	z-index: -2;
}
.overlay{
	position: fixed;
	inset: 0;
	background: radial-gradient(ellipse at center, rgba(10,10,10,.55) 0%, rgba(10,10,10,.92) 100%);
	z-index: -1;
}

#allContent{
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.login-card{
	width: 100%;
	max-width: 400px;
	background: var(--blanco);
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0,0,0,.55);
	overflow: hidden;
	animation: aparecer .5s ease-out;
}
@keyframes aparecer{
	from{ opacity: 0; transform: translateY(16px); }
	to{ opacity: 1; transform: none; }
}

.login-logo{
	padding: 32px 48px 12px;
	text-align: center;
}
.login-logo img{
	width: 100%;
	max-width: 230px;
	height: auto;
}

.login-body{
	padding: 8px 36px 32px;
}

.login-head{
	text-align: center;
	margin-bottom: 24px;
}
.login-head h1{
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
}
.login-head p{
	margin: 0;
	font-size: 13px;
	color: var(--gris);
}
.login-head::after{
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	margin: 16px auto 0;
	background: var(--negro);
}

.campo{
	margin-bottom: 18px;
}
.campo label{
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--negro-suave);
}
.campo input{
	display: block;
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	color: var(--negro);
	background: #f6f6f6;
	border: 1.5px solid var(--gris-claro);
	border-radius: 8px;
	outline: none;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.campo input:focus{
	background: var(--blanco);
	border-color: var(--negro);
	box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

.acciones{
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 26px;
}
#login_userbttn{
	flex: 1;
	padding: 13px 20px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--blanco);
	background: var(--negro);
	border: 1.5px solid var(--negro);
	border-radius: 8px;
	cursor: pointer;
	transition: background .2s, color .2s;
}
#login_userbttn:hover,
#login_userbttn:focus{
	background: var(--blanco);
	color: var(--negro);
	outline: none;
}

.timer{
	display: inline-block;
	width: 16px;
	height: 16px;
	background: url(loader.gif) 50% 50% no-repeat;
}

.session_on{
	text-align: center;
	line-height: 1.6;
}
.session_on a{
	color: var(--negro);
	font-weight: 600;
}

.login-footer{
	padding: 14px;
	text-align: center;
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--gris-claro);
	background: var(--negro);
}

/* Mensajes (los genera functions.ajax.js) */
#alertBoxes{
	margin-bottom: 4px;
}
.box-info, .box-success, .box-alert, .box-error{
	margin-bottom: 16px;
	padding: 10px 14px;
	font-size: 13px;
	text-align: left;
	border-radius: 8px;
	border-left: 4px solid;
}
.box-info, .box-success{
	color: var(--negro);
	background: #efefef;
	border-color: var(--negro);
}
.box-alert{
	color: #7a4b00;
	background: #fff6e0;
	border-color: #7a4b00;
}
.box-error{
	color: #b00020;
	background: #fdecee;
	border-color: #b00020;
}

@media (max-width: 420px){
	.login-logo{ padding: 24px 32px 8px; }
	.login-body{ padding: 8px 22px 26px; }
}
