/*
 * @file index.css
 * @description Hoja de estilos exclusiva para index.html (Pantalla de Login).
 * Contiene el diseño móvil (Mobile-First), colores corporativos (ORDI), 
 * fondos oscuros y la personalización de los inputs del formulario.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to left, rgb(0, 0, 0), rgba(47, 47, 47, 0.687));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* ==================================================
   SECCIÓN: LOGO E IMAGEN PRINCIPAL
   ================================================== */
#imagen-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px; 
    order: 1;
}

.imagen-diseno {
    display: block;
    width: 340px; 
    height: auto;
    object-fit: contain;
}

/* ==================================================
   SECCIÓN: FORMULARIO Y CONTENEDOR DE LOGIN
   ================================================== */
#iniciar-sesion {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    order: 2;
}

.container {
    background-color: #2e2e2e;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
}

h1 {
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
}

label {
    color: #b0b0b0;
    font-size: 0.9em;
    margin-bottom: 5px;
    display: block;
}

/* ==================================================
   SECCIÓN: INPUTS Y BOTONES (Controles)
   ================================================== */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    background-color: #3e3e3e;
    color: #ffffff;
    font-size: 1em;
}

.input-box {
    position: relative;
    width: 100%;
}

.eye-icon {
    position: absolute;
    right: 15px;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 22px;
    height: 22px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

#remember {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: #373737;
    border: 2px solid #555;
    border-radius: 6px;
    cursor: pointer;
}

#remember:checked {
    background-color: #cd1719;
    border-color: #cd1719;
    position: relative;
}

#remember:checked:before {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

button {
    width: 100%;
    font-size: 1.2em;
    font-weight: bold;
    padding: 12px;
    border: none;
    color: #fff;
    background-color: #cd1719;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #a81214;
}

/* ==================================================
   DISEÑO PARA ESCRITORIO (Pantallas medianas y grandes)
   ================================================== */
@media (min-width: 768px) {
    body {
        flex-direction: row;        /* Coloca logo y formulario lado a lado */
        justify-content: center;    /* Centra el conjunto en la pantalla */
        gap: 120px;                  /* Espacio horizontal entre logo y formulario */
    }

    #imagen-logo {
        width: auto;                /* Deja de ocupar el 100% de la pantalla */
        margin-bottom: 0;           /* Remueve el margen inferior */
        order: 1;                   /* Asegura que el logo vaya a la izquierda */
    }

    #iniciar-sesion {
        width: 600px;                /* Ajusta el contenedor al ancho del formulario */
        order: 2;                   /* Coloca el formulario a la derecha */
    }

    .imagen-diseno {
        width: 400px;               /* (Opcional) Ajusta el tamaño del logo en escritorio */
    }
}