/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(90deg, #0c1f36, #4f7492);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se apilen */
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Asegura que el padding se incluya en el ancho total */
    overflow: hidden; /* Previene que el contenido sobresalga */
    text-align: center;
}

.intro {
    width: 100%;
    max-width: 700px; /* Limita el ancho máximo para pantallas grandes */
    margin-bottom: 20px;
    box-sizing: border-box;
    text-align: left;
}

.intro-gif {
    width: 50%; /* Ajusta el tamaño del GIF según sea necesario */
    margin-bottom: 20px; /* Espacio entre el GIF y el texto de bienvenida */
    margin-top: 20px;
}

.intro h1 {
    color: #004A93;
    margin-bottom: 20px;
}

.intro p {
    color: #555;
    line-height: 1.6;
    word-wrap: break-word; /* Ajusta las palabras largas al ancho del contenedor */
}

.login-box {
    width: 100%;
    max-width: 350px; /* Limita el ancho máximo para pantallas grandes */
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    text-align: center;
}

.login-logo {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px auto; /* Centrado horizontal con margen inferior */
}

.login-logo img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.login-box h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #004A93;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-sizing: border-box;
}

button:hover {
    background-color: #003A73;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .intro {
        width: 100%;
        margin-bottom: 20px;
    }

    .login-box {
        width: 100%;
    }
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px; /* Espacio para el ícono del ojo */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.toggle-password img {
    width: 20px; /* Ajusta el tamaño del ícono según sea necesario */
    height: 20px;
}
