* {
    margin: 0;
    box-sizing: border-box;
}

html, body {
    display: flex;
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
}

.background {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: start;
    z-index: 0;
    overflow: hidden;
}

.background__fondo {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -100;
}

.glass-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: brightness(0.9);
    background: rgba(255, 255, 255, 0.02);
    z-index: 0;
}

.grid_layout {
    display: grid;
    grid-template-columns: 20% 1fr 20%;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "logo_invisible login_titulo logo_ingero"
        "login login login";
    width: 100%;
    max-width: 80rem;
    padding: 20px;
    padding-top: 10vh;
    margin: 1rem auto;
    min-height: auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .grid_layout {
      padding-top: 5vh;
    }
  }

.logo_invisible {
    grid-area: logo_invisible;
    display: none;
    width: 100%;
    height: 80%;
}

.login_titulo {
    grid-area: login_titulo;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    position: relative;
}

.login_titulo_content-1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    text-align: center;
    font-weight: 600;
    background: linear-gradient(90deg, #d4af37, #f6f7f9, #8a6d3b, #d4af37);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineHorizontal 15s ease-in-out infinite alternate;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
                 0 2px 2px rgba(0, 0, 0, 0.1),
                 0 4px 4px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 100%;
}

@keyframes shineHorizontal {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

.logo_ingero {
    grid-area: logo_ingero;
    display: flex;
    justify-content: flex-end;
    align-items: end;
    width: 100%;
    height: 30%;
    margin-left: clamp(1rem, 3rem);
    
}

.login_logo_ingero {
    width: 8rem;
    height: 6rem;
    animation: floatLogo 6s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 5px rgba(0, 150, 255, 0.1));
    transition: transform 0.4s ease, filter 0.4s ease;
}

@keyframes floatLogo {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3))
                drop-shadow(0 0 5px rgba(0, 150, 255, 0.1));
    }
    100% {
        transform: translateY(-3px);
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4))
                drop-shadow(0 0 6px rgba(0, 150, 255, 0.15));
    }
}

.login {
    grid-area: login;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: clamp(10px, 5vh, 50px);
}

.login-container {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(1px);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.login-container h2 {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.login-container label {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    display: block;
}

.login-container input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.07);
    color: #5d5d5d;
    font-size: 14px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.login-container input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-container input:focus {
    outline: none;
    border-color: #E97132;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(233, 113, 50, 0.2);
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #e97132, #cf4c1d);
    color: white;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.login-container button:hover {
    background: linear-gradient(135deg, #cf4c1d, #e97132);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.error-msg {
    color: #ff4d4f;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}




@media (max-width: 900px){

    .logo_ingero {
        grid-area: logo_ingero;
        display: flex;
        justify-content: flex-end;
        align-items: end;
        width: 100%;
        height: 30%;
        margin: 1rem 0 0 1rem;
        margin-left: clamp(1rem, 3rem);
        
    }
    
    .login_logo_ingero {
        width: 8rem;
        height: 6rem;
        animation: floatLogo 6s ease-in-out infinite alternate;
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3))
                drop-shadow(0 0 5px rgba(0, 150, 255, 0.1));
        transition: transform 0.4s ease, filter 0.4s ease;
    }

    .login_titulo_content-1{
        font-size: clamp(2em, 2.2em, 2.5em);
    }
} 



@media (max-height: 500px){

    .logo_ingero {
        grid-area: logo_ingero;
        display: flex;
        justify-content: flex-end;
        align-items: end;
        width: 100%;
        height: 30%;
        margin: 2rem 0 0 1rem;
        margin-left: clamp(1rem, 3rem);
        
    }
    
    .login_logo_ingero {
        width: 8rem;
        height: 6rem;
        animation: floatLogo 6s ease-in-out infinite alternate;
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3))
                drop-shadow(0 0 5px rgba(0, 150, 255, 0.1));
        transition: transform 0.4s ease, filter 0.4s ease;
    }

    .login_titulo_content-1{
        font-size: clamp(2em, 2.2em, 2.5em);
    }



    
} 

/* 
#precarga-dashboards {
    display: none !important;
    width: 0;
    height: 0;
    border: none;
  }
   */