* {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}

body{
    background-color: #010825;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;

}

.box-main {
    max-width: 1200px;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr ;
}

.box-texto{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 2rem;
}

.box-texto h2 span{
    color: #7b3bf3;
    font-weight: bolder;
}

.box-texto h2{
    font-size: 2rem;
    line-height: 2rem;
    letter-spacing: 3px;
}

.box-texto p{
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.imgFondo{
    width: 100%;
    height: 450px;

    background:
            linear-gradient(
                    rgba(1,8,37,0.15),
                    rgba(1,8,37,0.15)
            ),
            url("/images/logobackground.png");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    border-radius: 24px;

    box-shadow:
            inset 0 0 40px #010825,
            inset 0 0 80px rgba(1,8,37,0.9);
    margin-bottom: 5rem;
}


.box-ventajas{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
}

.box-ventajas div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.box-ventajas div p,
.box-ventajas div h3{
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-texto h1{
    color: #8a40d5;
    text-shadow: -1px 1px 6px rgba(255,255,255,0.5);
}

.ventaja i{
    font-size: 30px;
    padding-right: 10px;
}

.bi-piggy-bank{
    color: #2b9492;
}

.bi-graph-up-arrow {
    color: #8a40d5;
}

.bi-shield-lock{
    color: #4063c0;
}


/* --------------------------
            LOGIN
--------------------------------
 */
.login{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #010825;
    font-family: 'Inter', sans-serif;
}

/* CARD LOGIN */

form{
    width: 420px;

    padding: 2.5rem;

    background: rgba(8, 15, 45, 0.95);

    border: 1px solid rgba(138, 64, 213, 0.35);

    border-radius: 28px;

    box-shadow:
            0 0 20px rgba(138, 64, 213, 0.18),
            inset 0 0 25px rgba(255,255,255,0.02);

    backdrop-filter: blur(10px);
}

/* TITULOS */

form h1{
    font-family: 'Poppins', sans-serif;

    color: white;

    font-size: 2.3rem;

    margin-bottom: 10px;

    text-align: center;
}

.subtitle{
    color: #9ca3af;

    text-align: center;

    line-height: 1.7;

    margin-bottom: 2rem;
}

/* INPUTS */

.group{
    display: flex;
    flex-direction: column;

    margin-bottom: 1.3rem;
}

.group label{
    color: white;
    margin-bottom: 10px;
}

.group input{
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #8a40d5;
    background: rgba(255,255,255,0.03);
    color: white;
    outline: #8a40d5;
    transition: .3s;

}

.group input::placeholder{
    color: #7c859f;
}

.group input:focus{
    border: 1px solid #8a40d5;

    box-shadow: 0 0 10px rgba(138,64,213,.35);
}

/* MOSTRAR / OCULTAR CONTRASEÑA Y CÓDIGO */

.input-password-wrapper{
    position: relative;
    display: flex;
    align-items: center;
}

.input-password-wrapper input{
    padding-right: 48px;
}

.toggle-password{
    position: absolute;
    right: 16px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color .2s;
}

.toggle-password:hover{
    color: #b06cff;
}

/* RECORDAR */

.group-olvidar{
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 1rem 0 2rem 0;
}

.group-olvidar label{
    color: #d1d5db;

    font-size: .9rem;
}

.group-olvidar a{
    color: #b06cff;

    text-decoration: none;

    font-size: .9rem;
}

/* BOTON */

button{
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, #8a40d5, #6d28d9);
    color: white;
    font-weight: 600;
    cursor: pointer;

    transition: .3s;
}

button:hover{
    transform: translateY(-2px);

    box-shadow: 0 0 18px rgba(138,64,213,.45);
}

#logo-surti{
    width: 80px;
    height: 80px;
}

.center-h1{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* GOOGLE */

.google-btn{
    width: 100%;

    margin-top: 1rem;

    padding: 14px;

    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.12);

    background: transparent;

    color: white;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    cursor: pointer;
}

/* REGISTRO */

.register{
    text-align: center;

    margin-top: 2rem;

    color: #9ca3af;
}

.register a{
    color: #b06cff;

    text-decoration: none;

    font-weight: 500;
}


@media (max-width: 1200px) {
    *{
        font-size: 1.6rem;
    }

    button{
        font-size: 1.4rem;
    }
    .box-main {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 1.5rem 1rem 2rem;
        gap: 2rem;
    }

    /* Login primero en móvil */
    article.login { order: 1; }
    article.box-texto { order: 2; }

    .box-texto h1{ text-align: center; padding-top: 0; font-size: 2.6rem }

    form {
        width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 24px;
        height: 60vh;
    }

    .imgFondo { height: 450px; margin: 1rem 0; border-radius: 20px; }

    /* Ventajas en columna con ícono a la izquierda */
    .box-ventajas { grid-template-columns: 1fr; gap: 0.75rem; }
    .ventaja {
        flex-direction: row;       /* ícono + texto lado a lado */
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 1.25rem;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.07);
        border-radius: 16px;
        font-size: 1.5rem;
    }
    .ventaja i{ font-size: 60px; margin-top: 2px; flex-shrink: 0; }
    .ventaja p {
        font-size: 1.5rem;
        text-align: center;
    }
    .group-olvidar a,
    .group-olvidar input { flex-wrap: wrap; gap: 0.5rem; font-size: 1.6rem }

    .login{
        min-height: 30vh;
    }

    .box-texto{
        margin-top: 10rem;
    }
}