@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Playfair+Display:ital@1&display=swap');

:root{
    --primary:#7f1d3f;
    --primary-dark:#4a0b20;
    --soft:#fff1f5;
    --bg:#3b0a1b;
    --text:#241022;
    --muted:#6b7280;
    --border:#eadde4;
    --danger:#dc2626;
}

*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    width:100%;
    min-height:100%;
    overflow-x:hidden;
}

body{
    font-family:'Poppins', sans-serif;
    background:linear-gradient(135deg,#2a0714,#3b0a1b,#6b1030);
    color:var(--text);
}

/* CONTENEDOR */
.login-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
}

.login-shell{
    width:100%;
    max-width:900px;
    min-height:520px;
    background:#fff;
    border-radius:26px;
    overflow:hidden;
    display:grid;
    grid-template-columns:360px 1fr;
    box-shadow:0 25px 70px rgba(0,0,0,.28);
}

/* PANEL IZQUIERDO COMPACTO */
.login-visual{
    position:relative;
    padding:28px;
    color:white;
    background:
        radial-gradient(circle at 80% 70%,rgba(255,122,162,.18),transparent 34%),
        linear-gradient(135deg,#2a0714,#5a1028);
    overflow:hidden;
}

.visual-pattern{
    display:none;
}

.login-brand{
    display:flex;
    align-items:center;
    gap:10px;
    color:white;
    text-decoration:none;
    position:relative;
    z-index:3;
}

.login-brand span{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    background:white;
    color:var(--primary);
    border-radius:14px;
    font-size:22px;
}

.login-brand strong{
    font-family:'Playfair Display', serif;
    font-size:27px;
    font-style:italic;
}

.login-brand em{
    color:#ff7aa2;
}

.visual-content{
    position:relative;
    z-index:3;
    margin-top:42px;
}

.visual-content h1{
    margin:0;
    font-size:38px;
    line-height:1.08;
    font-weight:900;
}

.visual-content h1 span{
    color:#ff9fbe;
}

.visual-content > p{
    margin:16px 0 24px;
    font-size:14px;
    line-height:1.55;
    color:rgba(255,255,255,.9);
}

.visual-benefits{
    display:flex;
    flex-direction:column;
    gap:13px;
}

.benefit-item{
    display:flex;
    align-items:center;
    gap:12px;
}

.benefit-icon{
    width:42px;
    height:42px;
    border-radius:13px;
    display:grid;
    place-items:center;
    background:rgba(255,255,255,.12);
}

.benefit-item h3{
    margin:0 0 2px;
    font-size:13px;
}

.benefit-item p{
    margin:0;
    font-size:11px;
    color:rgba(255,255,255,.78);
}

/* Ocultamos ilustración grande para que no alargue */
.cart-illustration,
.support-card{
    display:none;
}

/* PANEL FORMULARIO */
.login-form-panel{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px;
    background:white;
}

.mobile-logo{
    display:none;
}

.form-box{
    width:100%;
    max-width:360px;
    text-align:center;
}

.form-box h2{
    margin:0 0 8px;
    font-size:30px;
    font-weight:900;
    color:var(--text);
}

.subtitulo-login{
    margin:0 auto 22px;
    max-width:300px;
    color:var(--muted);
    font-size:13px;
    line-height:1.5;
}

.input-group{
    position:relative;
    margin:12px 0;
}

.input-group input{
    width:100%;
    height:50px;
    border:1.5px solid var(--border);
    border-radius:16px;
    padding:0 48px;
    outline:none;
    font-size:14px;
}

.input-group input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(127,29,63,.10);
}

.icono{
    position:absolute;
    left:17px;
    top:50%;
    transform:translateY(-50%);
    color:#8f8192;
}

.toggle-password{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:transparent;
    color:#8f8192;
    cursor:pointer;
}

.form-options{
    margin:6px 0 13px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    font-size:12px;
}

.remember-check{
    display:flex;
    align-items:center;
    gap:7px;
    color:#746577;
    cursor:pointer;
}

.remember-check input{
    display:none;
}

.remember-check span{
    width:18px;
    height:18px;
    border:1.5px solid #cdbbc5;
    border-radius:5px;
}

.remember-check input:checked + span{
    background:var(--primary);
    border-color:var(--primary);
}

.forgot-link{
    color:#b11745;
    text-decoration:none;
    font-weight:800;
}

.error{
    min-height:18px;
    margin:0 0 8px;
    color:var(--danger);
    font-size:12px;
    font-weight:800;
}

.btn-login{
    width:100%;
    min-height:50px;
    border:none;
    border-radius:16px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:white;
    font-weight:900;
    font-size:15px;
    cursor:pointer;
}

.btn-secundario{
    width:100%;
    min-height:44px;
    border:none;
    border-radius:15px;
    margin-top:9px;
    background:var(--soft);
    color:var(--primary-dark);
    font-weight:900;
    cursor:pointer;
}

.divider{
    margin:18px 0 13px;
    display:flex;
    align-items:center;
    gap:10px;
    color:#8f8192;
    font-size:12px;
}

.divider::before,
.divider::after{
    content:"";
    flex:1;
    height:1px;
    background:#eadde4;
}

.social-login{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:9px;
}

.social-login button{
    min-height:44px;
    border:1px solid #e7dfe7;
    border-radius:14px;
    background:white;
    font-weight:900;
    cursor:pointer;
}

.social-login .fa-google{
    color:#ea4335;
}

.social-login .fa-facebook{
    color:#1877f2;
}

.registro-link{
    margin-top:18px;
    font-size:13px;
    color:#746577;
}

.registro-link a{
    color:#b11745;
    text-decoration:none;
    font-weight:900;
}

/* Footer oculto para no hacerlo largo */
.trust-footer{
    display:none;
}

/* MÓVIL */
@media(max-width:760px){
    .login-page{
        padding:12px;
        align-items:flex-start;
    }

    .login-shell{
        max-width:420px;
        min-height:auto;
        grid-template-columns:1fr;
        border-radius:24px;
    }

    .login-visual{
        display:none;
    }

    .login-form-panel{
        padding:26px 18px;
    }

    .mobile-logo{
        display:flex;
        justify-content:center;
        margin-bottom:18px;
    }

    .login-brand.compact{
        color:var(--primary-dark);
    }

    .login-brand.compact span{
        width:42px;
        height:42px;
        background:linear-gradient(135deg,var(--primary),var(--primary-dark));
        color:white;
    }

    .login-brand.compact strong{
        font-size:24px;
    }

    .form-box{
        max-width:100%;
    }

    .form-box h2{
        font-size:26px;
    }

    .subtitulo-login{
        font-size:13px;
        margin-bottom:20px;
    }

    .input-group input{
        height:50px;
    }

    .form-options{
        flex-direction:column;
        align-items:flex-start;
    }

    .social-login{
        grid-template-columns:1fr;
    }
}

@media(max-width:360px){
    .login-form-panel{
        padding:22px 14px;
    }

    .login-brand.compact strong{
        font-size:21px;
    }
}