* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
/*FONDO*/
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .08), transparent 22%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .05), transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, .06), transparent 28%),
        linear-gradient(135deg, #050505 0%, #000000 45%, #0a0a0a 100%);
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    opacity: .55;
    filter: blur(30px);

}

body::before {
    background-image:
        radial-gradient(circle at 25% 30%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .08) 18%, transparent 45%),
        radial-gradient(circle at 75% 60%, rgba(180, 180, 180, .14) 0%, rgba(180, 180, 180, .06) 14%, transparent 40%);
}

body::after {
    background-image:
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, .10) 0%, transparent 35%),
        radial-gradient(circle at 40% 75%, rgba(210, 210, 210, .10) 0%, transparent 34%);
    animation-duration: 24s;
    opacity: .4;
}

.login-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    isolation: isolate;
    z-index: 1;
}

.form_login {
    position: relative; /* Necesario para que el brillo se posicione respecto a él */
    overflow: hidden;   /* Esto "recorta" cualquier elemento que intente salir del cuadro */
    width: 100%;
    max-width: 430px;
    padding: 38px 30px 45px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(22, 22, 22, .86), rgba(8, 8, 8, .80));
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .65);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
    animation: aparecerDesdeAbajo 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
/*línea sobresaliente*/
.form_login::before {
    content: "";
    position: absolute;
/*TAMAÑOS DE LA LÍNEA*/
    top: -150%;
    left: -150%;
    width: 300%;
    height: 370%;
    background: linear-gradient(0deg, transparent, transparent 30%, rgba(255, 255, 255, 0.288));
    transform: rotate(-45deg); /*inclinación*/
    transition: all 1.5s ease;
    opacity: 0;
}
/*FIN línea sobresaliente*/
/*EFECTO DE SOMBRA POR DETRAS Y HACERCAMIENTO*/
.form_login:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 0 20px rgba(254, 225, 77, 0.22);
}
.form_login:hover::before {
    left: 20%;
    opacity: 1;
    transform: rotate(-45deg) translateY(100%);
}
/*FIN EFECTO DE SOMBRA...*/

.logo-login {
    width: min(170px, 46vw);
    margin: 0 0 14px 0;
    object-fit: contain;
}

.title-box {
    cursor: default;
    text-align: center;
    margin-bottom: 24px;
    color: #fff;
}

.title-box h2 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: .5px;
}

.title-box p {
    margin: 6px 0 0 0;
    color: rgba(255, 255, 255, .65);
    font-size: .95rem;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
}

.input-group:hover {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .06);
    transform: translateY(-1px);
}

.input-group:focus-within {
    border-color: rgba(255, 255, 255, .42);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .07);
}

.input-group label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}

.input-group label img {
    width: 22px;
    height: 22px;
    margin: 0;
    opacity: .9;
}

.inf_user {
    flex: 1;
    width: 100%;
    padding: 6px 0;
    border: none;
    background-color: transparent;
    color: #fff;
    font-size: 1rem;
    letter-spacing: .6px;
    outline: none;
}

.inf_user::placeholder {
    color: rgba(255, 255, 255, .45);
    letter-spacing: .8px;
}

.forgotten-password {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-style: italic;
    display: block;
    text-align: center;
    margin: 2px auto 22px auto;
    position: relative;
    width: fit-content;
}

/*efecto underline-text sobre "olvidó su contraseña"*/
.forgotten-password::after,
.forgotten-password::before {
content: '';
position: absolute;
width: 100%;
height: 1px;
background: linear-gradient(to right, rgba(253, 232, 48, 0.437),rgba(255, 255, 255, 0.288));
bottom: -5px;
left: 0;
transform: scaleX(0);
transform-origin: right;
transition: transform 0.4s ease-out;
}

.forgotten-password::before {
    top: -5px;
    transform-origin: left;
}

.forgotten-password:hover::after,
.forgotten-password:hover::before {
    transform: scaleX(1);
}

.forgotten-password:hover {
    color: #ffffff;
}
/*fin de efecto underline-text sobre "olvidó su contraseña"*/

.bottom-login {
    text-align: center;
    width: 100%;
    padding: 14px;
    margin: 20px 0;
    border-radius: 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .65);
    background:linear-gradient(135deg, #1b1b1b 0%, #050505 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.bottom-login:hover{
    transform: translateY(-2px);
    color: #fff;
}

.bottom-login:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2a2a2a 0%, #090909 100%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
    border-color: #fff;
}

.bottom-login:active {
    transform: translateY(0);
}


@media (max-width: 480px) {
    .form_login {
        padding: 28px 20px 24px;
        border-radius: 22px;
    }

    .title-box h2 {
        font-size: 1.45rem;
    }

    .input-group {
        padding: 11px 12px;
    }

    .bottom-login {
        padding: 13px;
    }
}

/* animación de "entrar" */
@keyframes aparecerDesdeAbajo {
    from {
        opacity: 0;
        transform: translateY(100px); /* Empieza 50px más abajo */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Llega a su sitio */
    }
}