body, html {
  margin: 0;
  padding: 0;
}
.login_body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background: linear-gradient(135deg, #0f0f0f, #2c2c2e, #1a1a1d); */
    background: var(--primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f5f5f5;
    background-size: 200% 200%;
    animation: backgroundShift 15s ease infinite;
    will-change: background-position;

}

@keyframes backgroundShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.contenedor-global {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-evenly;
    align-items: center;
    flex: 1;
}

.logo { 
    text-align: center;
}

.logo img {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 20px 0;
}

.login-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    box-sizing: border-box;
}

/* Icono grande de usuario arriba del formulario */
.login-user-icon {
    text-align: center;
    margin-bottom: 30px;
}

.login-user-icon i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.9);
}

.login-form {
    width: 100%;
}

.login-form .login-input-wrapper {
    position: relative;
    margin: 20px 0;
    width: 100%;
}

.login-form .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.login-form .input-icon i {
    font-size: 18px;
}

.login-form input {
    width: 100%;
    padding: 15px 45px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.login-form input:focus {
    box-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* Botón de mostrar/ocultar contraseña */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 5px 10px;
    font-size: 18px;
    z-index: 2;
    transition: color 0.3s ease;
    margin: 0;
    width: auto;
}

.toggle-password:hover {
    color: rgba(255, 255, 255, 1);
}

.toggle-password::before {
    display: none;
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.login-form .btn-login {
    position: relative;
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    border: 2px solid #efefef;
    border-radius: 10px;
    background: transparent;
    color: #efefef;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
    transition: background 0.3s ease, color 0.3s ease;
}

.login-form .btn-login:hover {
    box-shadow: 0 0 10px rgba(239,239,239,0.5);
}

.login-form .btn-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #efefef;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.login-form .btn-login:hover::before {
    opacity: 1;
}

.login-form .btn-login:hover {
    color: #0b0b0b;
}

/* Footer del login */
.login-footer {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding: 20px 0;
    margin-top: auto; /* Empuja el footer al final */
}

.login-footer p {
    margin: 0;
}

/* @media (min-width: 768px) and (max-width: 992px) {
    .login-body {
        justify-content: center;
        align-items: center;
    }

    .contenedor-global {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }

    .login-container {
        width: 55%;
        max-width: 420px;
        padding: 30px 35px;
        margin: 0 auto;
    }

    .logo img {
        max-width: 180px;
        margin-bottom: 25px;
    }

    .login-user-icon i {
        font-size: 60px;
    }

    .login-footer {
        font-size: 13px;
        padding-bottom: 20px;
    }
} */


@media (max-width: 480px) {

    .login-container {
        margin: 20px;
    }
    

}