* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: #252835;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
    font-family: "Montserrat", sans-serif;
}

.container-form {
    display: flex;
    border-radius: 20px;
    box-shadow: 0 5px 7px rgba(255, 255, 255, 0.726);
    min-height: 450px;
    height: auto;
    width: 90%;
    max-width: 800px;
    transition: all 1s ease;
    margin: 10px auto;
    overflow: hidden;
    background-color: #fff; 
}

.information {
    position: relative;
    width: 50%;
    min-height: 450px;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 1; 
}

.form-information {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    text-align: center;
    background-color: #f8f8f8;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 40px;
}

.form-information-childs {
    padding: 0 10px;
    width: 100%;
}

.form-information-childs h2 {
    color: #333;
    font-size: 3rem;
    font-family: "Tektur", sans-serif;
    font-weight: 589;
    font-style: normal;
    font-variation-settings: "wdth" 80.7;
    margin-bottom: 10px;
}

.form-information-childs p {
    color: #555;
    font-family: "IBM Plex Serif", serif;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 20px;
}

.icons {
    margin: 15px 0;
}

.icons i {
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    margin: 0 10px;
    color: #9191bd;
    border: solid thin #9191bd;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.icons i:hover {
    background-color: #c7c7f3;
    color: #fff;
}

.form {
    margin: 20px 0 0 0;
    width: 100%;
}

.form label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-radius: 20px;
    padding: 0 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form label input {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border: none;
    outline: none;
    border-radius: 20px;
    color: #333;
}

.form label i {
    color: #a7a7a7;
}

.form input[type="submit"] {
    background-color: #9191bd;
    color: #fff;
    border-radius: 20px;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form input[type="submit"]:hover {
    background-color: #7a7a9a;
}

.hide {
    position: absolute;
    transform: translateY(-300%);
}

/* Alertas */
.icons .alerta {
    display: block;
    width: 100%;
    max-width: 290px;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 7px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    color: #fff;
    animation: fade-in 0.5s ease-in-out;
}

.icons .alerta.falta-datos { background-color: #ffc107; }
.icons .alerta.credenciales-incorrectas { background-color: #f66060; }
.icons .alerta.usuario-desactivado { background-color: #a9a9a9; }
.icons .alerta.usuario-bloqueado {
    background-color: #d9534f;
    background-image: linear-gradient(to right, #d9534f, #f7605f);
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

#login-alert {
    font-size: 14px;
    color: #fff;
    background-color: #d9534f;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
    animation: fade-in 0.5s ease-in-out;
}

input[disabled] {
    background-color: #f2f2f2;
    color: #a1a1a1;
    cursor: not-allowed;
    border: 1px solid #ddd;
}

.btn-custom {
    min-width: 100%;
    max-width: 250px;
    height: 45px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    padding: 0 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color .3s ease;
}

.btn-warning:hover { background-color: #e0a800; }
.btn-primary:hover { background-color: #0b5ed7; }

/* --- RESPONSIVIDAD --- */

/* Tablet / Desktop Pequeño */
@media screen and (max-width: 850px) {
    .container-form {
        width: 95%; 
        min-height: 400px;
    }
    .form-information, .information {
        width: 50%;
    }
}

/* Móvil Vertical (Max 700px) */
@media screen and (max-width: 700px) {
    .container-form {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    /* CAMBIO AQUÍ: MOSTRAR IMAGEN COMO BANNER SUPERIOR */
    .information {
        display: flex; /* Volver a mostrar la imagen */
        width: 100%;
        height: 180px; /* Altura fija para que sea un banner */
        min-height: 180px; /* Sobrescribir min-height de escritorio */
        border-radius: 20px 20px 0 0; /* Bordes redondeados solo arriba */
        padding: 0;
    }

    .form-information {
        width: 100%;
        padding: 30px 20px;
        border-radius: 0 0 20px 20px; /* Bordes redondeados solo abajo */
    }
    
    .form-information-childs {
        padding: 0;
        width: 100%;
    }
    
    .form-information-childs h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 580px) {
    html {
        font-size: 14px;
    }
    .container-form {
        margin: 10px auto;
        width: 100%;
    }
}