/* ESTILOS PARA EL NUEVO LOGIN DE GLOBAL */

/* Fondo con imagen y degradado gris */
.background {
    position: fixed;
    top: 0;
    left: 0;    
    width: 100%;
    height: 100%;
    background-image: url('../site_fondo.jpg'), 
                      linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-attachment: fixed; /* Fija la imagen de fondo */
    z-index: -1;
}

/* Contenedor principal */
.main-content {
    
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el contenido horizontalmente */
    height: 100vh; /* Ocupa toda la altura de la pantalla */
    padding: 0 15%;
    box-sizing: border-box; /* Evita que el padding afecte el tamaño total */
}

/* Contenedor de bienvenida */
.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-right: 100px; /* Mayor separación del login */
}

/* Imagen del logo de bienvenida */
.welcome-image {
    max-width: 550px; /* Ajusta el tamaño del logo */
    height: auto;
}

/* Contenedor del login centrado */
.login-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Caja del login */
.login-container {
    background-color: #132552;
    padding: 2rem; /* Mayor padding interno */
    border-radius: 25px 25px 25px 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
    text-align: left;
    width: 100%; /* Aumentar ancho */
    max-width: 500px; /* Ajustar tamaño máximo */
}

/* Estilos del título del login */
.login-container h2 {
    font-size: 2.5em; /* Aumenta el tamaño del texto */
    font-weight: bold; /* Negrita */
    margin-bottom: 25px;
}

/* Aumenta el tamaño de los íconos */
.input-group-text i {
    font-size: 2.3em;
}

/* Contenedor de inputs */
.input-group {
    display: flex;
    width: 100%;
}

/* Estilos de los inputs */
.input-group input {
    border-bottom: 2px solid white;
    border-left: none;
    border-right: none;
    border-top: none;
    background: transparent !important; /* Mantiene fondo transparente */
    color: white !important;
    outline: none;
    font-size: 1.5em;
    flex: 1;
    padding: 10px;
    width: 100%;
    caret-color: white; /* Color del cursor */
    transition: border-bottom 0.3s ease; /* Transición suave */
}

/* Eliminar fondo blanco en autofill (para Chrome, Edge y navegadores basados en WebKit) */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
    background-color: transparent !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    color: white !important;
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: white !important; /* Mantiene el texto en blanco */
}

.elegant-title {
    font-size: 2.0rem;
    margin-top: 10px;
    color: white;
    text-align: center;
    display: block;
}

/* Alinear iconos a la izquierda */
.input-group-text {
    background-color: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
}

/* Efecto al enfocar el input */
.input-group input:focus {
    border-bottom: 3px solid rgb(156, 31, 31) !important;
    background: transparent !important; /* Asegura transparencia */
    color: white !important; /* Mantiene el texto visible */
    box-shadow: none; /* Elimina sombras no deseadas */
}

/* Placeholder más visible */
.input-group input::placeholder {
    font-size: 1.0em;
    color: rgba(255, 255, 255, 0.7);
}

/* Estilos para el botón */
.btn-light {
    width: 100%;
    padding: 0.75rem;
    background-color: #828282;
    color: white;    
    border: none;
    border-radius: 10px 10px 10px 10px;
    font-size: 1.2rem !important;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Efecto hover en botón */
.btn-light:hover {
    background-color: white;
    border-color: black;
    transform: scale(1.05);
}

/*ESTILO PARA EL FOOTER*/
.footer2 {
    position: fixed;
    bottom: 10px;
    right: 10px;
    color: white;
    font-size: 1.0rem;
    z-index: 10;
}


/************** ESTILOS PARA TABLET *************/

/* Ajustes para pantallas grandes */
@media (min-width: 1024px) {
    .main-content {
        color: white;
        justify-content: space-between;
        padding: 0 10%;
    }
}

/* Vista en tablet vertical */
@media only screen and (max-width: 768px) {
    .main-content {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 50px 5%;
        align-items: center;
    }
    .welcome-container {
        order: 1;
        text-align: center;
        align-items: center;
        margin-top: 40px;
        margin-bottom: 90px;
    }
    .welcome-image {
        margin-top: -30px;
        max-width: 500px; /* Ajusta tamaño del logo */
    }
    .login-container-wrapper {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-grow: 1;
        margin-top: -20px;
        padding-bottom: 20px;
        padding-right: 80px;
        height: auto;
    }
    .login-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }


    /* Ajustar los input-group para alinearlos en una línea */
    .input-group {
        display: flex;          /* Usa flexbox para alinear icono y input horizontalmente */
        align-items: center;    /* Alinea verticalmente los elementos */
    }

    .input-group-text {
        border-radius: 0.375rem 0 0 0.375rem; /* Redondea solo el borde izquierdo del icono */
        padding: 0.9rem;        /* Ajuste de padding para que el icono se vea bien */
    }

     /* Reducir tamaño de los iconos */
     .input-group-text i {
        font-size: 1.8rem; /* Cambia el tamaño de los iconos */
        margin-top: -1.2rem;    /* Ajusta la posición vertical del icono (subir el icono) */
    }

    /* Reducir tamaño de los placeholders */
    input::placeholder {
        font-size: 1rem; /* Cambia el tamaño del texto en el placeholder */
    }
}


/* Vista horizontal en tablet */
@media (orientation: landscape) and (max-width: 1024px) {
    .main-content {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 100vh;
        padding: 5% 10%;
        width: 100vw;
        gap: 80px;
        margin-top: -50px;
    }
    .welcome-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 40%;
        margin: 0;
        margin-right: 40px;
    }
    .welcome-image {
        max-width: 350px;
    }
    .login-container-wrapper {
        width: 40%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 40px;
    }
    .login-container {
        width: auto; /* Asegura que el ancho se ajuste */
        max-width: 500px; /* Se hace más ancho */
        height: auto; /* No se fuerza la altura */
        padding: 1rem 1.0rem; /* Reducir el padding para hacerlo menos alto */
        font-size: 0.5rem; /* Reducir tamaño de texto */
        display: flex;
        flex-direction: column; /* Coloca los elementos en una columna (texto arriba del icono) */
        align-items: center; /* Centra los elementos horizontalmente */
        justify-content: center;
        gap: 5px; /* Espacio entre los elementos (texto, icono, input) */
        overflow: hidden;
        margin: 0 auto; /* Centrado automático */
    }
    
    .login-container .icon {
        display: inline-block;
        margin-top: 5px; /* Espacio entre el texto y el icono */
        width: 15px; /* Ajusta el tamaño del icono */
        height: 15px; /* Ajusta el tamaño del icono */
    }
    
    .login-container .text {
        text-align: center; /* Centra el texto */
        font-size: 1.2rem; /* Reduce el tamaño de la fuente del texto */
        margin-bottom: 15px; /* Espacio debajo del texto */
    }
    
    /* Reducir el tamaño de los placeholders de los inputs */
    .login-container input::placeholder {
        font-size: 0.9rem; /* Tamaño del placeholder */
    }
}


/* ESTILOS PARA EL NUEVO LOGIN DE GLOBAL */