/* =========================================================
   ACCESO (inicio de sesión)
   ========================================================= */

:root {
    --primary-color: #c40c0c;
    --secondary-color: #21344A;
    --bg-light: #f8f8f8;
    --text-dark: #333333;
    --text-light: #ffffff;
    --icon-color: #9191bd;
    --border-radius: 20px;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.2);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background-image: url('../img/Background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #eaeaea;
    transition: background-image 0.5s ease;
}

.container-form {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    background-color: var(--text-light);
    overflow: hidden;
    width: 850px; 
    max-width: 95%;
    min-height: 500px;
    margin-right: 8%;
    transition: all 0.6s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.information {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--primary-color);
    padding: 2.5rem;
    color: var(--text-light);
}

.info-childs { width: 100%; }
.info-childs h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.info-childs p { margin-bottom: 2.5rem; line-height: 1.5; font-weight: 400; }

.info-childs .info-nota {
    margin-bottom: 0;
    font-size: .9rem;
    opacity: .85;
}

.form-information {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-light);
    padding: 2.5rem;
}

.form-information-childs {
    width: 100%;
    max-width: 350px;
}

/* LOGO OCULTO EN ESCRITORIO POR DEFECTO */
.form-logo {
    display: none; 
    margin: 0 auto 1.5rem auto;
}

.form-information-childs h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.input-box {
    display: flex;
    align-items: center;
    border-radius: var(--border-radius);
    padding: 0 15px;
    background-color: var(--text-light);
    box-shadow: var(--shadow-sm);
    height: 48px;
    transition: box-shadow 0.3s ease;
}

.input-box:focus-within {
    box-shadow: 0 0 0 2px var(--icon-color);
}

.input-box i {
    color: var(--icon-color);
    font-size: 1.3rem;
    margin-right: 12px;
}

.input-box input, .input-box select {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form input[type="submit"] {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: var(--border-radius);
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.form input[type="submit"]:hover { background-color: var(--secondary-color); }

/* RESPONSIVE DESIGN - MEDIA QUERIES */
@media screen and (max-width: 850px) {
    body {
        justify-content: center;
        margin-right: 0;
        padding: 20px;
        background-image: none;
        background-color: var(--secondary-color);
    }
    .container-form {
        flex-direction: column;
        width: 100%;
        max-width: 450px;
        height: auto;
        margin-right: 0;
    }
    /* CORRECCIÓN: ANCHOS AL 100% PARA EVITAR QUE SE CORTEN */
    .information {
        width: 100%;
        padding: 2.5rem 2rem;
        order: 1;
    }
    .form-information {
        width: 100%;
        padding: 2.5rem 2rem;
        order: 2;
    }
    /* MUESTRA EL LOGO SOLO EN MÓVILES */
    .form-logo {
        display: block; 
        max-width: 150px;
        height: auto;
    }
}
