/* Uso de Tipografía Secundaria: Open Sans  */
body {
	background: #4E555E; /* Gris: Fondos secundarios  */
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	font-family: 'Open Sans', sans-serif;
	height: 100vh;
	margin: 0;
}

h1 {
	font-weight: bold; /* Negro: Encabezados  */
	margin-top: 0;
	margin-bottom: 5px;
	font-size: 1.6rem;
	color: #2A2B2D;
}

p {
	font-size: 14px;
	line-height: 20px;
	margin: 20px 0 30px;
}

a {
	color: #F58614; /* Naranja para enlaces  */
	font-size: 14px;
	text-decoration: none;
}

/* Botones corporativos  */
button {
	border-radius: 4px; /* Estilo más profesional y directo */
	border: none;
	background-color: #F58614; /* Naranja: Botones  */
	color: #FFFFFF; /* Blanco  */
	font-size: 14px;
	font-weight: bold;
	padding: 12px 45px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

button:hover {
	background-color: #d47311; /* Oscurecimiento sutil del naranja */
}

input {
	background-color: #f6f5f7;
	border: 1px solid #4E555E; /* Gris claro para bordes  */
	padding: 12px 15px;
	margin: 8px 0;
	width: 100%;
}

.checkbox-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 10px 0 20px 0;
	font-size: 14px;
}

.checkbox-container input {
	width: auto;
	margin: 0;
}

.container {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 20px rgba(0,0,0,0.19);
	position: relative;
	overflow: hidden;
	width: 768px;
	max-width: 100%;
	min-height: 480px;
}

.form-container {
	position: absolute;
	top: 0;
	height: 100%;
	width: 50%; /* 1. Modificar el contenedor del formulario para que sea flexible */
	display: flex;
	flex-direction: column;
}

form {
	background-color: #FFFFFF; /* 2. Ajustar el formulario interno para que reduzca los márgenes si hay alertas */
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 20px 40px;
	height: 100%;
	text-align: center;
	box-sizing: border-box;
}

/* Estilos para el logo del formulario */
.logo-login {
	height: 50px; /* 4. Optimizar el espaciado del encabezado y logo cuando hay errores */ /* Ajuste sutil de 60px a 50px para dar aire al contenedor */
	margin-bottom: 10px;
}

.overlay-container {
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
}

.overlay {
	background: #2A2B2D; /* Negro corporativo para contraste  */
	color: #FFFFFF;
	height: 100%;
	width: 100%;
}

.overlay-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 40px;
	text-align: center;
	height: 100%;
}

.overlay-panel h1 {
    color: #FFFFFF; /* Texto blanco sobre fondo oscuro  */
}

/* --- Diseño Responsivo (Móviles) --- */
@media (max-width: 768px) {
    .container {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }
    .form-container {
        width: 100%;
    }
    .overlay-container {
        display: none; /* Ocultamos el panel decorativo en móviles para dar espacio al login */
    }
    form {
        padding: 0 20px;
    }
}

/* 3. Estilizar la alerta flash para que sea compacta y no empuje drásticamente */
.alert-danger,
div[style*="background-color"][style*="red"] {
	background-color: #FCE8E6 !important;
	color: #C5221F !important;
	border: 1px solid #F5C2C1 !important;
	padding: 8px 12px !important;
	font-size: 0.82rem !important;
	border-radius: 6px !important;
	margin-bottom: 10px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.login-right-panel {
    background-color: #2A2B2D; /* El gris oscuro que tienes */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* Centra verticalmente */
    align-items: center !important;     /* Centra horizontalmente */
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
}
/* Inputs del Login modernos */
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 15px;
    border: 1px solid #CBD5E1;
    border-radius: 8px; /* Bordes suaves */
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

/* Foco interactivo en naranja */
.login-form input:focus {
    border-color: #F58614 !important;
    box-shadow: 0 0 0 3px rgba(245, 134, 20, 0.15) !important;
}

/* Botón ENTRAR unificado al 100% del ancho o más robusto */
.btn-login {
    width: 100%; /* Se lee mucho mejor si abarca el mismo ancho de los campos */
    background-color: #F58614;
    color: white;
    border: none;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(245, 134, 20, 0.2);
    transition: background-color 0.2s;
}

.btn-login:hover {
    background-color: #D6710A;
}
.login-card-container {
    display: flex;
    background: #FFFFFF;
    border-radius: 12px; /* Esquinas redondeadas para toda la tarjeta */
    overflow: hidden; /* Evita que los fondos de las esquinas se salgan */
    /* Sombra suave de producción, nada de bordes negros rígidos */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.login-footer {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: #64748B;
}