/* RESET Y ESTILOS BASE */
html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

body {
	font-family: 'Open Sans Condensed', 'Arial Narrow', serif;
	background: #222;
	background-image: url(bg-dark.png);
	font-weight: 400;
	font-size: 15px;
	color: #333;
	-webkit-font-smoothing: antialiased;
}

a {
	color: #aaa;
	text-decoration: none;
}

a:hover {
	color: lightblue;
}

/* CONTENEDOR PRINCIPAL */
.container {
	width: 100%;
	height: 100%;
	position: relative;
}

.main {
	width: 100%;
	height: 100%;
	position: relative;
}

/* CONTENEDOR BIENVENIDO */
.bienvenido-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100vh;
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

.bienvenido-flex {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	position: relative;
}

/* SECCIONES SUPERIOR E INFERIOR DEL BIENVENIDO */
.cs-bienvenido-superior, .cs-bienvenido-inferior {
	width: 100%;
	height: 3vw;
	overflow: hidden;
	position: relative;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cs-bienvenido-superior {
	border-top: 1px solid rgba(255,255,255,0.5);
	margin-top: -1px;
}

.cs-bienvenido-inferior {
	border-bottom: 1px solid rgba(255,255,255,0.5);
}

/* TEXTO DEL BIENVENIDO */
.cs-bienvenido-superior span {
	display: block;
	font-size: 8vw;
	line-height: 8vw;
	color: #fff;
	font-family: 'Fjalla One', sans-serif;
	text-transform: uppercase;
	text-shadow: 0 .1em 1em lightblue;
	margin: 0;
	padding: 0;
	text-align: center;
	white-space: nowrap;
	font-weight: 700;
	letter-spacing: 0.05em;
	position: relative;
	top: 2vw;
	clip-path: inset(0 0 50% 0);
}

.cs-bienvenido-inferior span {
	display: block;
	font-size: 8vw;
	line-height: 8vw;
	color: #fff;
	font-family: 'Fjalla One', sans-serif;
	text-transform: uppercase;
	text-shadow: 0 .1em 1em lightblue;
	margin: 0;
	padding: 0;
	text-align: center;
	white-space: nowrap;
	font-weight: 700;
	letter-spacing: 0.05em;
	position: relative;
	top: 0;
	clip-path: inset(50% 0 0 0);
	margin-top: -3vw;
}

/* LOGIN MODAL */
.login-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 400px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 20;
	pointer-events: none;
}

.login-block {
	opacity: 0;
	pointer-events: none;
	max-height: 0;
	overflow: hidden;
	transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.login-block.open {
	opacity: 1;
	pointer-events: auto;
	max-height: 1000px;
}

.login-title {
	font-size: 1.5em;
	color: #fff;
	margin-bottom: 15px;
	font-family: 'Fjalla One', sans-serif;
	text-align: center;
	letter-spacing: 2px;
	text-shadow: 0 .1em 1em lightblue;
	text-transform: uppercase;
	font-weight: 700;
}

.login-field {
	margin: 10px 0;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

form {
	background: rgba(0,0,0,0.85);
	padding: 25px 30px;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 15px rgba(0,0,0,0.9);
	min-width: 280px;
	box-sizing: border-box;
}

input[type="text"],
input[type="password"],
input[type="email"] {
	padding: 10px 15px;
	border-radius: 5px;
	border: none;
	width: 100%;
	font-size: 1em;
	box-sizing: border-box;
	background: rgba(255,255,255,0.9);
	color: #333;
	margin-bottom: 10px;
	font-family: Arial, sans-serif;
}

input::placeholder {
	color: #999;
}

button {
	padding: 10px 15px;
	border-radius: 5px;
	border: none;
	width: 100%;
	font-size: 1em;
	box-sizing: border-box;
	background: #1e90ff;
	color: #fff;
	cursor: pointer;
	font-weight: bold;
	transition: background 0.3s ease;
	margin-top: 5px;
	font-family: Arial, sans-serif;
}

button:hover {
	background: #0d6efd;
}

a#registerLink, a#backToLogin {
	color: #1e90ff;
	font-size: 0.9em;
	text-decoration: underline;
	cursor: pointer;
	text-align: center;
	margin-top: 10px;
	display: block;
	width: 100%;
}

a#registerLink:hover, a#backToLogin:hover {
	color: lightblue;
}

#loginMsg, #registerMsg {
	margin-top: 10px;
	color: #fff;
	text-align: center;
	font-size: 0.9em;
}

/* RESPONSIVE */
@media (max-width: 768px) {
	.cs-text-cut span {
		font-size: 6vw;
		line-height: 6vw;
	}

	.login-title {
		font-size: 1.2em;
	}

	form {
		min-width: 250px;
		padding: 20px 25px;
	}

	input[type="text"],
	input[type="password"],
	input[type="email"] {
		font-size: 0.95em;
	}
}

@media (max-width: 480px) {
	.cs-text-cut span {
		font-size: 5vw;
		line-height: 5vw;
	}

	.login-title {
		font-size: 1em;
	}

	form {
		min-width: 220px;
		padding: 15px 20px;
	}
}
