
body {

background: linear-gradient(135deg, #4b941e, #e7fb73 100%);
background-size: 200% 200%;
animation: background-move 10s ease infinite;
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}

@keyframes background-move {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}

.login-container {
display: flex;
/* Se ajusta el ancho para que sea responsivo /
width: 90%;
max-width: 1200px; / Un máximo para que no sea demasiado ancho en pantallas grandes */
min-height: 600px;
background-color: #ffffff;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
border-radius: 20px;
overflow: hidden;
animation: container-pop-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes container-pop-in {
from {
transform: translateY(20px) scale(0.95);
opacity: 0;
}
to {
transform: translateY(0) scale(1);
opacity: 1;
}
}

/* ========================================================================= /
/ === Lado Izquierdo (con la imagen de fondo) ============================= /
/ ========================================================================= */
.login-left {
flex: 1;
display: flex;
justify-content: center;
align-items: flex-end;
padding: 2rem;
color: #fff;
position: relative;
z-index: 1;
background-image: url('../img/10.jpg');
background-size: cover;
background-position: center;
transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-left:hover {
transform: scale(1.05);
}

.login-left::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, rgba(16, 20, 24, 0.8), rgba(16, 20, 24, 0.4));
z-index: -1;
opacity: 1;
transition: opacity 0.5s ease;
}

.login-container:hover .login-left::before {
opacity: 0.8;
}

.login-text-box {
animation: text-fade-in 1s ease-in-out;
}

@keyframes text-fade-in {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.login-text-box h2 {
font-size: 2.5rem;
margin-bottom: 0.5rem;
font-weight: 700;
text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.login-text-box p {
font-size: 1rem;
margin: 0;
font-weight: 300;
}

/* ========================================================================= /
/ === Lado Derecho (Formulario de Login) ================================== /
/ ========================================================================= */
.login-right {
flex: 1;
background-color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
padding: 3rem;
animation: form-fade-in 1s ease-in-out 0.3s forwards;
opacity: 0;
}

@keyframes form-fade-in {
from {
opacity: 0;
transform: translateX(-20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

.form-container {
width: 100%;
max-width: 400px;
text-align: left;
}

.form-container h2 {
font-size: 2rem;
color: #333;
margin-bottom: 2.5rem;
font-weight: 600;
text-align: center;
}

.message {
padding: 1rem;
margin-bottom: 1.5rem;
border-radius: 8px;
font-weight: 500;
border: none;
animation: shake 0.5s ease;
}

@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-5px); }
50% { transform: translateX(5px); }
75% { transform: translateX(-5px); }
}

.error-message {
background-color: #ffcccc;
color: #d12e2e;
}

.success-message {
background-color: #d4f8d4;
color: #198754;
}

.input-group {
margin-bottom: 1.5rem;
position: relative;
}

.input-group input {
width: 100%;
padding: 14px 20px;
border: 1px solid #e0e0e0;
border-radius: 30px;
box-sizing: border-box;
font-size: 1rem;
transition: all 0.3s ease;
background-color: #f7f7f7;
}

.input-group input:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.options-group {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.95rem;
margin-bottom: 1.5rem;
color: #666;
}

.checkbox-container {
display: block;
position: relative;
padding-left: 25px;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.checkbox-container input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}

.checkmark {
position: absolute;
top: 0;
left: 0;
height: 18px;
width: 18px;
background-color: #e0e0e0;
border-radius: 4px;
transition: all 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark {
background-color: #007bff;
}

.checkmark:after {
content: "";
position: absolute;
display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
display: block;
}

.checkbox-container .checkmark:after {
left: 6px;
top: 2px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 3px 3px 0;
transform: rotate(45deg);
}

.forgot-password {
color: #007bff;
text-decoration: none;
transition: color 0.3s ease;
}

.forgot-password:hover {
color: #0056b3;
text-decoration: underline;
}

.login-button {
width: 100%;
background-color: #007bff;
color: white;
padding: 16px;
border: none;
border-radius: 30px;
cursor: pointer;
font-size: 1.1rem;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.login-button:hover {
background-color: #0056b3;
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0, 123, 255, 0.5);
}

.login-button:active {
transform: translateY(0);
box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

/* ========================================================================= /
/ === MEDIA QUERIES para Responsividad ==================================== /
/ ========================================================================= /
@media (max-width: 768px) {
.login-container {
flex-direction: column; / Apila los elementos verticalmente /
width: 95%;
min-height: auto; / Altura automática en móviles */


.login-left, .login-right {
    padding: 2rem;
}

.login-left {
    min-height: 250px; /* Asegura que la imagen sea visible */
}

.login-left h2 {
    font-size: 1.8rem;
}

.login-text-box p {
    font-size: 0.9rem;
}

.form-container h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

