﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
}

.contenedor-login {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.lado-izquierdo {
    flex: 1;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.formulario {
    width: 80%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

    .formulario h1 {
        color: #004080;
        font-size: 30px;
        margin-bottom: 10px;
    }

    .formulario p {
        color: #555;
        margin-bottom: 25px;
    }

.grupo {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

label {
    color: #333;
    font-weight: bold;
    margin-bottom: 6px;
}

input {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

button {
    display: block;
    width: 100%;
    background-color: #004080;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

    button:hover {
        background-color: #0066cc;
    }

.mensaje {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.lado-derecho {
    flex: 1;
    background-color: #004080;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .lado-derecho img {
        width: 50%;
        max-width: 280px;
        height: auto;
    }

@media (max-width: 768px) {
    .contenedor-login {
        flex-direction: column;
    }

    .lado-izquierdo, .lado-derecho {
        width: 100%;
        height: 50vh;
    }

        .lado-derecho img {
            width: 120px;
        }

    .formulario {
        width: 85%;
    }
}
