/*=============================================
        PYRO LOGIN
==============================================*/

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:#071321;

    min-height:100vh;

    overflow-x:hidden;

    overflow-y:auto;

    color:white;

}

/*=============================================
                FONDO
==============================================*/

.background{

    position:fixed;

    width:100%;

    height:100%;

    background:
    radial-gradient(circle at top left,#0B5ED7 0%,transparent 30%),
    radial-gradient(circle at bottom right,#163A6B 0%,transparent 35%),
    linear-gradient(140deg,#04101D,#081A2D,#071321);

    z-index:-5;

}

/*=============================================
            PARTICULAS
==============================================*/

.particles{

    position:fixed;

    width:100%;

    height:100%;

    background-image:

    radial-gradient(#63B3FF 1px,transparent 1px);

    background-size:45px 45px;

    opacity:.08;

    animation:particles 35s linear infinite;

    z-index:-4;

}

@keyframes particles{

    from{

        transform:translateY(0);

    }

    to{

        transform:translateY(-1000px);

    }

}

/*=============================================
            CONTENEDOR
==============================================*/

.contenedor{

    width:100%;

    min-height:100vh;

    display:flex;

}

/*=============================================
            PANEL IZQUIERDO
==============================================*/

.panel-izquierdo{

    width:50%;

    min-height:100vh;

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

    background:url("../img/fondo-login.jpg");

    background-size:cover;

    background-position:center;

}

/* Oscurece la imagen */

.overlay{

    position:absolute;

    width:100%;

    height:100%;

    background:linear-gradient(

    rgba(4,18,40,.88),

    rgba(5,35,70,.90)

    );

}

/*=============================================
        CONTENIDO
==============================================*/

.contenido{

    width:70%;

    position:relative;

    z-index:20;

}

.logo{

    width:150px;

    margin-bottom:35px;

    filter:drop-shadow(0 15px 40px rgba(50,150,255,.35));

}

.contenido h1{

    font-size:70px;

    font-weight:800;

    letter-spacing:3px;

    color:#63B3FF;

}

.contenido h2{

    font-size:32px;

    margin-top:5px;

    font-weight:500;

    color:white;

}

.linea{

    width:120px;

    height:5px;

    margin:30px 0;

    border-radius:20px;

    background:#4EA5FF;

}

.contenido p{

    color:#C5D5E5;

    font-size:19px;

    line-height:35px;

}

/*=============================================
            BENEFICIOS
==============================================*/

.beneficios{

    margin-top:45px;

}

.beneficio{

    display:flex;

    align-items:center;

    margin-bottom:25px;

    font-size:18px;

}

.beneficio i{

    width:45px;

    height:45px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    display:flex;

    justify-content:center;

    align-items:center;

    margin-right:18px;

    color:#59B2FF;

    font-size:18px;

}

/*=============================================
        PANEL DERECHO MEJORADO
==============================================*/

.panel-derecho{

    width:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px;

}


.login-card{

    width:520px;
    min-height:600px;

    background:rgba(11,25,45,.90);

    backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.12);

    border-radius:30px;

    padding:60px 55px;

    box-shadow:
    0 25px 70px rgba(0,0,0,.5);

}


/* TITULO */

.login-card h2{

    text-align:center;

    font-size:42px;

    margin-bottom:15px;

    font-weight:700;

}


.login-card h2 span{

    color:#59B2FF;

}


.login-card p{

    text-align:center;

    color:#C5D8EC;

    font-size:18px;

    margin-bottom:30px;

}



/* LINEA */

.barra{

    width:120px;

    height:5px;

    background:#59B2FF;

    border-radius:50px;

    margin:0 auto 45px;

}



/* LABELS */

form label{

    display:block;

    font-size:17px;

    margin-bottom:10px;

    color:white;

}



/* INPUTS */

.input-group{

    height:55px;

    display:flex;

    align-items:center;

    background:rgba(255,255,255,.06);

    border:1px solid rgba(255,255,255,.15);

    border-radius:15px;

    padding:0 18px;

    margin-bottom:25px;

}


.input-group i{

    font-size:20px;

    color:#59B2FF;

    margin-right:15px;

}


.input-group input{

    width:100%;

    height:100%;

    background:none;

    border:none;

    outline:none;

    color:white;

    font-size:17px;

}


.input-group input::placeholder{

    color:#8EA8C4;

}


/* BOTON OJO */

.toggle-password{

    background:none;

    border:none;

    color:#59B2FF;

    font-size:18px;

}



/* OPCIONES */

.opciones{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin:25px 0;

    font-size:15px;

}


.opciones a{

    color:#59B2FF;

    text-decoration:none;

}


/* BOTON LOGIN */

.btn-login{

    width:100%;

    height:60px;

    border:none;

    border-radius:15px;

    background:linear-gradient(
        135deg,
        #0B5ED7,
        #59B2FF
    );

    color:white;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}


.btn-login i{

    margin-right:10px;

}


.btn-login:hover{

    transform:translateY(-3px);

}



/* REGISTRO */

.registro{

    text-align:center;

    margin-top:35px;

    font-size:16px;

    color:#C5D8EC;

}


.registro a{

    color:#59B2FF;

    font-weight:600;

} 

/*=============================================
                MENSAJES
==============================================*/

#mensaje{

    text-align:center;
    font-size:14px;
    margin-bottom:20px;
    font-weight:600;
    min-height:22px;

}

#mensaje.success{

    color:#3EE28A;

}

#mensaje.error{

    color:#FF6666;

}

/* ====================================================
   NUEVO CÓDIGO RESPONSIVE PARA EL LOGIN (Añadir al final)
====================================================== */

@media (max-width:1050px){

    .contenedor{

        flex-direction:column;

    }


    .panel-izquierdo{

        display:flex;

        width:100%;

        min-height:650px;

        padding:40px 20px;

        order:1;

    }


    .panel-derecho{

        width:100%;

        padding:30px 20px;

        order:2;

    }


}

@media (max-width: 480px) {
    .login-card h2 {
        font-size: 32px;
    }
    .login-card p {
        font-size: 16px;
    }
    .opciones {
        flex-direction: column; /* Alinea "Recordarme" y "Olvidaste..." uno abajo del otro */
        gap: 15px;
        align-items: flex-start;
    }
    .input-group {
        height: 50px; /* Inputs ligeramente más compactos en celular */
    }
}

@media(max-width:600px){

    .contenido{

        width:85%;

        text-align:center;

    }


    .contenido h1{

        font-size:45px;

    }


    .contenido h2{

        font-size:24px;

    }


    .contenido p{

        font-size:16px;

        line-height:28px;

    }


    .beneficios{

        margin-top:35px;

    }


    .beneficio{

        justify-content:center;

        font-size:16px;

    }

}

/*=====================================
        MODAL RECUPERAR
======================================*/

.modal-recuperar{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.65);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:999;

}

.modal-recuperar.active{

    display:flex;

}

.modal-content{

    width:450px;

    max-width:90%;

    background:#0B1930;

    border-radius:20px;

    padding:40px;

    position:relative;

    border:1px solid rgba(255,255,255,.1);

}

.modal-content h2{

    text-align:center;

    margin-bottom:15px;

}

.modal-content p{

    text-align:center;

    color:#C5D8EC;

    margin-bottom:30px;

}

.cerrar-modal{

    position:absolute;

    right:20px;

    top:15px;

    color:white;

    font-size:30px;

    cursor:pointer;

}

#mensajeRecuperar{

    margin-top:20px;

    text-align:center;

    font-weight:600;

}
/*=============================================
    MODAL DE ÉXITO (para Login)
==============================================*/

.modal-exito {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn .4s ease;
}

.modal-exito.active {
    display: flex;
}

.modal-exito-content {
    width: 450px;
    max-width: 92%;
    background: #0B1930;
    border-radius: 24px;
    padding: 50px 40px 45px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: scaleUp .4s ease;
}

.cerrar-modal-exito {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #8EA8C4;
    font-size: 28px;
    cursor: pointer;
    transition: .3s;
    line-height: 1;
}

.cerrar-modal-exito:hover {
    color: #FF6666;
    transform: rotate(90deg);
}

.modal-icono {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(62, 226, 138, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-icono i {
    font-size: 50px;
    color: #3EE28A;
}

.modal-exito-content h2 {
    font-size: 30px;
    color: white;
    margin-bottom: 12px;
}

.modal-exito-content p {
    color: #C5D8EC;
    font-size: 17px;
    line-height: 28px;
    margin-bottom: 30px;
}

.btn-continuar {
    padding: 16px 50px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #0B5ED7, #59B2FF);
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: .35s;
    box-shadow: 0 15px 30px rgba(11, 94, 215, 0.3);
}

.btn-continuar i {
    margin-right: 10px;
}

.btn-continuar:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(89, 178, 255, 0.4);
}

.btn-continuar:active {
    transform: scale(0.97);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
/*=============================================
    ESTILOS PARA EL BOTÓN VER CONTRASEÑA
==============================================*/

/* Asegurar que el botón toggle sea visible */
.toggle-password {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    color: #59B2FF;
    font-size: 20px;
    padding: 0 8px;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 100%;
}

.toggle-password:hover {
    color: #8EC9FF;
    transform: scale(1.1);
}

.toggle-password:active {
    transform: scale(0.9);
}

/* Asegurar que el input-group no oculte el botón */
.input-group {
    height: 55px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 0 18px;
    margin-bottom: 25px;
    position: relative;
}

.input-group input {
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 17px;
    flex: 1;
}

.input-group i:first-child {
    font-size: 20px;
    color: #59B2FF;
    margin-right: 15px;
}
/*=============================================
    reCAPTCHA - NO SOY UN ROBOT
==============================================*/

.captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    transition: .3s;
}

.captcha-container:hover {
    border-color: rgba(89, 178, 255, 0.3);
    background: rgba(89, 178, 255, 0.05);
}

/* Ajustar el iframe de Google reCAPTCHA */
.g-recaptcha {
    transform: scale(1);
    transform-origin: center;
}

/* Modo oscuro nativo de Google reCAPTCHA */
.g-recaptcha > div {
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive */
@media(max-width: 500px) {
    .captcha-container {
        padding: 10px;
        margin: 15px 0 20px;
    }
    
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: center;
    }
}

@media(max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.82);
        transform-origin: center;
    }
}
/*=============================================
    MENSAJE DE RECUPERACIÓN
==============================================*/
#mensajeRecuperar {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    min-height: 20px;
    transition: all .3s ease;
}

#mensajeRecuperar:empty {
    padding: 0;
    margin: 0;
}

#mensajeRecuperar i {
    margin-right: 6px;
}