/* login.css */

/* Efectos por defecto */
body {
    font-family: 'Nunito', sans-serif;
    font-weight: normal;
    font-size: 100%;
    color: #1b262c;
    
    margin: 0;
    background-color: #f5f7fa;
    background-image: url(../img/JFK.webp);
    background-position: center;
    background-size: cover;
}

/* Efectos para el contenedor de pantalla completa */
#contenedor {
    display: flex;
    align-items: center;
    justify-content: center;
    
    margin: 0;
    /* padding: 20px; */
    min-width: 100vw;
    min-height: 100vh;
    /* width: 100%; */
    /* height: 100%; */
}

/* Contenedor del login */
#contenedorcentrado {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    
    min-width: 380px;
    max-width: 900px;
    width: 90%;
    
    border-radius: 15px;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    
    -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    
    box-sizing: border-box;
}

/* Formulario de login */
#login {
    width: 50%;
    padding: 40px;
    background-color: #ffffff;
    
    -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    border-radius: 15px 0 0 15px;
    -moz-border-radius: 15px 0 0 15px;
    -webkit-border-radius: 15px 0 0 15px;
    
    box-sizing: border-box;
}

/* Etiquetas del formulario */
#login label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Inputs */
#login input[type="text"],
#login input[type="password"] {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: #333;
    
    display: block;
    width: 100%;
    height: 45px;
    
    margin-bottom: 20px;
    padding: 10px;
    
    box-sizing: border-box;
    
    border: 1px solid #ddd;
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    
    background: #f9f9f9;
    transition: all 0.3s ease;
}

#login input[type="text"]:focus,
#login input[type="password"]:focus {
    border-color: #0069A3;
    box-shadow: 0 0 8px rgba(0, 105, 163, 0.2);
    outline: none;
}

#login input::placeholder {
    font-family: 'Nunito', sans-serif;
    color: #999;
}

/* Opciones del formulario (checkbox y enlace) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.remember-me input {
    margin-right: 5px;
}

.lost-password {
    font-size: 14px;
    color: #0069A3;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lost-password:hover {
    color: #003f66;
    text-decoration: underline;
}

.lost-password:focus {
    outline: 2px solid #0069A3;
    outline-offset: 2px;
}

/* Botón */
#login button {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    color: #ffffff;
    width: 100%;
    height: 45px;
    border: none;
    
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    
    background: #0069A3;
    
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#login button:hover {
    background: #003f66;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#login button:focus {
    outline: 3px solid #0069A3;
    outline-offset: 2px;
}

/* Términos y condiciones */
.terms {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

.terms a {
    color: #0069A3;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

/* Sección de la derecha */
#derecho {
    width: 50%;
    padding: 40px;
    background: rgba(0, 105, 163, 0.8); /* Fondo azul semitransparente */
    color: #fff;
    text-align: left;
    border-radius: 0 15px 15px 0;
    -moz-border-radius: 0 15px 15px 0;
    -webkit-border-radius: 0 15px 15px 0;
    box-sizing: border-box;
}

#logo-empresa {
    width: 120px;
    margin-bottom: 20px;
}

.titulo {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

#derecho p {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Ajustar a pantallas con ancho menor o igual a 775px */
@media all and (max-width: 775px) {
    #contenedorcentrado {
        flex-direction: column;
        min-width: 380px;
        max-width: 900px;
        width: 90%;
        border-radius: 15px;
        -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        -moz-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        padding: 0;
    }
    
    #login {
        width: 100%;
        border-radius: 15px 15px 0 0;
        padding: 30px;
    }
    
    #derecho {
        width: 100%;
        border-radius: 0 0 15px 15px;
        padding: 30px;
        text-align: center;
    }
    
    #logo-empresa {
        width: 100px;
    }
    
    .titulo {
        font-size: 28px;
    }
    
    #derecho p {
        font-size: 14px;
    }
    
    #login label {
        font-size: 14px;
    }
    
    #login input[type="text"],
    #login input[type="password"] {
        height: 40px;
        font-size: 14px;
    }
    
    #login button {
        height: 40px;
        font-size: 16px;
    }
}

/* Asegurar contraste para accesibilidad */
:root {
    --primary-blue: #0069A3;
    --text-dark: #333;
    --text-light: #fff;
}
