/*=============================================
        FUENTE
==============================================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

html{
    scroll-behavior:smooth;
}

body{

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

    background:#071321;

    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;

    flex-direction:row;

}

/*=============================================
            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:100px;

    max-width: 300px;
    height: auto;

}

.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{

    width:100%;

    background:white;

    display:flex;

    justify-content:space-evenly;

    align-items:center;

    padding:22px 0;

    position:relative;

    z-index:5;

}

.beneficios div{

    flex:1;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    position:relative;

}

.beneficios div:not(:last-child)::after{

    content:"";

    position:absolute;

    right:0;

    width:1px;

    height:55px;

    background:#E4E4E4;

}

.beneficios i{

    font-size:36px;

    color:#ff3b17;

    margin-bottom:10px;

}

.beneficios span{

    color:#555;

    font-size:15px;

    text-align:center;

    line-height:22px;

    font-weight:500;

}

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

.panel-derecho{

    width:50%;

    display:flex;

    justify-content:center;

    align-items:flex start;

    padding:40px;

    overflow: visible;

}


/*=============================================
        TARJETA DEL FORMULARIO
==============================================*/

.formulario{

    width:100%;
    max-width:700px;

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

    backdrop-filter:blur(20px);

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

    border-radius:30px;

    padding:55px;

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

    position: relative;

    z-index:101;;

}


/*=============================================
            TITULO
==============================================*/

.formulario h2{

    text-align:center;

    font-size:42px;

    font-weight:700;

    color:white;

    margin-bottom:10px;

}

.formulario h2 span{

    color:#59B2FF;

}

.formulario p{

    text-align:center;

    color:#C5D8EC;

    font-size:18px;

    margin-bottom:35px;

}


/*=============================================
            LINEA
==============================================*/

.barra{

    width:120px;

    height:5px;

    background:#59B2FF;

    border-radius:50px;

    margin:0 auto 40px;

}


/*=============================================
            FILAS
==============================================*/

.fila{

    display:flex;

    gap:20px;

    margin-bottom:22px;

}

.grupo{

    flex:1;

}


/*=============================================
            LABEL
==============================================*/

.grupo label{

    display:block;

    font-size:16px;

    color:white;

    margin-bottom:10px;

}


/*=============================================
            INPUTS
==============================================*/

.input{

    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;

    transition:.3s;

}

.input:hover{

    border-color:#59B2FF;

}

.input:focus-within{

    border-color:#59B2FF;

    box-shadow:0 0 18px rgba(89,178,255,.18);

}

.input i{

    width:30px;

    font-size:19px;

    color:#59B2FF;

    margin-right:10px;

}

.input input{

    width:100%;

    height:100%;

    border:none;

    outline:none;

    background:none;

    color:white;

    font-size:16px;

}

.input input::placeholder{

    color:#8EA8C4;

}

/*=============================================
        BOTON MOSTRAR CONTRASEÑA
==============================================*/

.toggle-password{

    background:none;

    border:none;

    outline:none;

    cursor:pointer;

    color:#59B2FF;

    font-size:18px;

    transition:.3s;

}

.toggle-password:hover{

    color:#8EC9FF;

}


/*=============================================
            BOTON REGISTRO
==============================================*/

.btnRegistro{

    width:100%;

    height:60px;

    border:none;

    border-radius:15px;

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

    color:white;

    font-size:19px;

    font-weight:600;

    cursor:pointer;

    transition:.35s;

    box-shadow:0 15px 30px rgba(0,0,0,.25);

}

.btnRegistro i{

    margin-right:10px;

}

.btnRegistro:hover{

    transform:translateY(-3px);

    box-shadow:0 18px 35px rgba(89,178,255,.35);

}

.btnRegistro:active{

    transform:scale(.98);

}


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

#mensaje{

    text-align:center;

    margin-top:20px;

    min-height:24px;

    font-size:15px;

    font-weight:600;

}

#mensaje.success{

    color:#3EE28A;

}

#mensaje.error{

    color:#FF6666;

}


/*=============================================
        YA TIENES CUENTA
==============================================*/

.login{

    text-align:center;

    margin-top:30px;

    color:#C5D8EC;

    font-size:16px;

}

.login a{

    color:#59B2FF;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.login a:hover{

    color:#84C8FF;

    text-decoration:underline;

}

/*=============================================
            ANIMACIONES
==============================================*/

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(35px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.formulario{

    animation:fadeUp .8s ease;

}

.contenido{

    animation:fadeUp 1s ease;

}


/*=============================================
            SCROLL PERSONALIZADO
==============================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#071321;

}

::-webkit-scrollbar-thumb{

    background:#2D79D8;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#59B2FF;

}


/*=============================================
            SELECCIÓN
==============================================*/

::selection{

    background:#59B2FF;

    color:white;

}


/*=============================================
            INPUT AUTOFILL
==============================================*/

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus{

    -webkit-text-fill-color:white;

    transition:background-color 9999s ease-in-out 0s;

}


/*=============================================
            TRANSICIONES
==============================================*/

.input,
.btnRegistro,
.subir-logo,
.login a,
.toggle-password{

    transition:.3s ease;

}

/*=============================================
        RESPONSIVE
==============================================*/

@media (max-width:1100px){

    .contenedor{

        flex-direction:column;

    }

    .panel-izquierdo{

        display:none;

    }

    .panel-derecho{

        width:100%;

        padding:30px 20px;

        align-items:flex-start;

    }

    .formulario{

        margin-bottom: 50px;

    }

}

@media (max-width:768px){

    body{

        overflow-x:hidden;

    }

    .panel-derecho{

        padding:20px;

    }

    .formulario{

        padding:35px 25px;

        border-radius:22px;

    }

    .fila{

        flex-direction:column;

        gap:15px;

    }

    .grupo{

        width:100%;

    }

    .formulario h2{

        font-size:32px;

    }

    .formulario p{

        font-size:16px;

    }

    .input{

        height:52px;

    }

    .btnRegistro{

        height:55px;

    }

}

@media (max-width:480px){

    .panel-derecho{

        padding:15px;

    }

    .formulario{

        width:100%;

        padding:22px 16px;

        border-radius:18px;

    }

    .formulario h2{

        font-size:26px;

    }

    .formulario p{

        font-size:14px;

        margin-bottom:25px;

    }

    .grupo label{

        font-size:14px;

    }

    .input{

        height:48px;

        padding:0 14px;

    }

    .input i{

        font-size:16px;

    }

    .input input{

        font-size:15px;

    }

    .subir-logo{

        height:130px;

    }

    .subir-logo i{

        font-size:36px;

    }

    .btnRegistro{

        height:50px;

        font-size:16px;

    }

    .login{

        font-size:14px;

    }

}

@media (max-width:360px){

    .panel-derecho{

        padding:10px;

    }

    .formulario{

        padding:18px 12px;

    }

    .formulario h2{

        font-size:22px;

    }

    .input{

        height:45px;

    }

    .btnRegistro{

        font-size:15px;

    }

}

@media(max-width:1050px){

    body{

        overflow-y:auto;

    }


    .contenedor{

        flex-direction:column;

    }


    .panel-izquierdo{

        width:100%;

        min-height:700px;

        order:1;

        padding:50px 20px;

    }


    .panel-derecho{

        width:100%;

        order:2;

        padding:30px 20px;

    }


    .contenido{

        width:85%;

        text-align:center;

    }


}
/*=============================================
        MODAL DE ÉXITO
==============================================*/

.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;
}

/* Botón cerrar (X) */
.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);
}

/* Icono de éxito */
.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;
}

/* Botón Continuar */
.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);
}

/* Animaciones del modal */
@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 EN REGISTRO
==============================================*/

.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 no oculte el botón */
.input {
    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;
    transition: .3s;
    position: relative;
}

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

.input i {
    width: 30px;
    font-size: 19px;
    color: #59B2FF;
    margin-right: 10px;
}

