body{

	margin:0;

	height:100vh;

	background:#ffffff;

	font-family: 'Montserrat', sans-serif;

	background-image: url('../imagenes/BG.png');

	background-size: cover;

}

.login-box{

 display: flex;

}

.izq{
	display: flex;

	flex: 1.3;

	background:rgba(15, 45, 30, 0.75);
	
	padding:20px;

	overflow: hidden;

	height: 100vh;

	color: white;

	align-items: center;

	justify-content: space-between;

	flex-direction: column;
	

}

.top{

	margin-bottom: 0;

}

.contenido h1{

	margin-top: 5px;

	font-size: 60px;

	margin-bottom: 40px;

}

.contenido p{

	font-size: 25px;

	line-height: 1.5;

	margin-bottom: 30px;

}


.footer{
	top: -50px;
}

/* Logo de Datix arriba de "Iniciar Sesión" (va en el lado blanco) */
.logoDatix{

	width: 280px;

	max-width: 70%;

	margin-bottom: 30px;

}

.der{

	flex: 1;

	background:white;

	padding:20px;

	overflow: hidden;

	height: 100vh;

	display: flex;

	align-items: center;

	justify-content: center;

	flex-direction: column;

}

.campo{

	display: flex;

    flex-direction: column;

    gap: 4px;

    margin-bottom: 15px;

}

.campo input[type="text"],
input[type="password"]{

	width: 30rem;

	padding: 10px;

	border: 1px solid #ccc;

	border-radius: 4px;

	font-size: 16px;

	padding-right: 45px;

}

.iniciar{

	font-size: 50px;

	margin-bottom: 20px;

	text-align: left;

	width: 80%;

    max-width: 480px;


}

.iniciar p{

	font-size: 15px;

	margin-top: 10px;

	text-align: left;

	width:100%;

	white-space: nowrap;

	letter-spacing: -1px;

}

.iniciar h1{

	letter-spacing: -2px;

}

.campo input[type="submit"]{

	background: #1b1b1b;

	color: white;

	border: none;

	padding: 10px 20px;

	border-radius: 4px;

	font-size: 16px;

	cursor: pointer;

	transition: background-color 0.3s ease;

	margin-top: 40px;

}

.campo input[type="submit"]:hover{

	background: #333;

	transform: translateY(-2px);/* Mueve el botón hacia arriba al pasar el mouse */

    box-shadow: 0 4px 8px rgba(90, 90, 90, 0.4);/* Agrega una sombra al botón al pasar el mouse */

}

.campo {
    position: relative;
}

.ojo {

    position: absolute;

    right: 10px;

    top: 7px;

    background: transparent;

    color: #777;

    border: none;

    padding: 5px;

    cursor: pointer;

}

.ojo:hover {

    background: transparent;

    color: #1b1b1b;

}

.campo p{

	font-size: 14px;

	margin-top: 20px;

	text-align: center;

}

.campo a{

	color: #005822;

	text-decoration: none;

	font-weight: 650;

}

.campo a:hover{

	text-decoration: underline;

}


/* Responsive para tablets */
@media (max-width: 1024px){

	.contenido h1{
		font-size: 45px;
	}

	.contenido p{
		font-size: 20px;
	}


	.campo input[type="text"],
	.campo input[type="password"]{
		width: 100%;
		box-sizing: border-box;
	}

	.iniciar{
		width: 90%;
	}

	.iniciar p{
		white-space: normal;
	}
}

.contenedor-password {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contenedor-password input {
    flex: 1;
}

.contenedor-password button {
    background: white;
    border: 1px solid #ccc;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
}

/* Responsive para celulares */
@media (max-width: 768px){

	body{
		height: auto;
		min-height: 100vh;
		background-size: cover;
		background-position: center;
	}

	.login-box{
		flex-direction: column;
		min-height: 100vh;
	}

	.izq{
		flex: none;
		height: auto;
		min-height: 300px;
		padding: 25px 20px;
		box-sizing: border-box;
		gap: 20px;
	}

	.top{
		margin-bottom: 0;
	}

	.contenido h1{
		font-size: 36px;
		margin-top: 5px;
		margin-bottom: 20px;
	}

	.contenido p{
		font-size: 18px;
		margin-bottom: 20px;
	}


	.footer{
		top: 0;
	}

	.der{
		flex: 1;
		height: auto;
		min-height: 450px;
		padding: 35px 20px;
		box-sizing: border-box;
	}

	.iniciar{
		font-size: 36px;
		width: 100%;
		max-width: 480px;
		margin-bottom: 20px;
	}

	.iniciar h1{
		letter-spacing: -1px;
	}

	.iniciar p{
		font-size: 14px;
		letter-spacing: 0;
		white-space: normal;
	}

	.campo{
		width: 100%;
		max-width: 480px;
		box-sizing: border-box;
	}

	.campo input[type="text"],
	.campo input[type="password"]{
		width: 100%;
		box-sizing: border-box;
	}

	.campo input[type="submit"]{
		width: 100%;
		margin-top: 25px;
	}
}


/* Responsive para celulares pequeños */
@media (max-width: 400px){

	.contenido h1{
		font-size: 30px;
	}

	.contenido p{
		font-size: 16px;
	}

	.iniciar{
		font-size: 30px;
	}

	.der{
		padding: 30px 15px;
	}
}
