@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;
    min-width:0;
}

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

/* =========================
   REGISTRO APP COMPACTO
========================= */

.register-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
}

.register-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
========================= */

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

.register-brand{
    display:flex;
    align-items:center;
    gap:10px;
    color:white;
    text-decoration:none;
    position:relative;
    z-index:3;
}

.register-brand span{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    background:white;
    color:var(--primary);
    border-radius:14px;
    font-size:22px;
}

.register-brand strong{
    font-family:'Playfair Display', serif;
    font-size:27px;
    font-style:italic;
}

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

/* =========================
   ILUSTRACIÓN COMPACTA
========================= */

.register-illustration{
    position:absolute;
    right:18px;
    bottom:22px;
    width:220px;
    height:190px;
    opacity:.95;
}

.phone-card{
    position:absolute;
    right:48px;
    bottom:15px;
    width:95px;
    height:155px;
    border-radius:24px;
    background:linear-gradient(145deg,#fff,#f9d7e3);
    box-shadow:0 18px 34px rgba(0,0,0,.24);
}

.phone-card::before{
    content:"";
    position:absolute;
    left:50%;
    top:12px;
    width:34px;
    height:5px;
    border-radius:999px;
    background:#d6a7b8;
    transform:translateX(-50%);
}

.phone-card::after{
    content:"";
    position:absolute;
    left:18px;
    right:18px;
    top:42px;
    height:70px;
    border-radius:18px;
    background:linear-gradient(135deg,#ff7aa2,#ff6a00);
}

.profile-card,
.check-card,
.box-card{
    position:absolute;
    width:54px;
    height:54px;
    border-radius:16px;
    display:grid;
    place-items:center;
    color:white;
    box-shadow:0 14px 30px rgba(0,0,0,.22);
}

.profile-card{
    left:12px;
    top:28px;
    background:rgba(255,255,255,.14);
}

.check-card{
    right:8px;
    top:20px;
    background:linear-gradient(135deg,#22c55e,#16a34a);
}

.box-card{
    left:20px;
    bottom:22px;
    background:linear-gradient(135deg,#ff7aa2,#e11d48);
}

/* =========================
   PANEL FORMULARIO
========================= */

.register-form-panel{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px;
    background:white;
}

.mobile-logo{
    display:none;
}

.form-box{
    width:100%;
    max-width:370px;
    text-align:center;
}

.form-box h2{
    margin:0 0 8px;
    font-size:30px;
    font-weight:900;
    color:var(--text);
}

.registro-subtitulo{
    margin:0 auto 22px;
    max-width:300px;
    color:var(--muted);
    font-size:13px;
    line-height:1.5;
}

.registro-input-group{
    position:relative;
    margin:12px 0;
}

.registro-input-group input{
    width:100%;
    height:50px;
    border:1.5px solid var(--border);
    border-radius:16px;
    padding:0 48px;
    outline:none;
    font-size:14px;
    font-family:'Poppins', sans-serif;
}

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

.terms-box{
    margin:8px 0 10px;
    text-align:left;
}

.terms-box label{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    color:#746577;
    cursor:pointer;
}

.terms-box input{
    display:none;
}

.terms-box span{
    width:18px;
    height:18px;
    border:1.5px solid #cdbbc5;
    border-radius:5px;
    flex:0 0 auto;
}

.terms-box input:checked + span{
    background:var(--primary);
    border-color:var(--primary);
}

.registro-error{
    min-height:18px;
    margin:0 0 8px;
    color:var(--danger);
    font-size:12px;
    font-weight:800;
}

.btn-registro{
    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;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
}

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

.registro-link{
    margin-top:18px;
    font-size:13px;
    color:#746577;
}

.registro-link a{
    color:#b11745;
    text-decoration:none;
    font-weight:900;
}

/* =========================
   COMPATIBILIDAD VIEJA
========================= */

.registro-container{
    width:100%;
    max-width:400px;
    background:rgba(255,255,255,.98);
    padding:34px 30px;
    border-radius:28px;
    text-align:center;
    box-shadow:0 24px 70px rgba(0,0,0,.30);
}

.registro-logo{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:8px 22px;
    margin-bottom:16px;
    border-radius:999px;
    background:linear-gradient(135deg,#ffffff,#fff1f5);
    color:var(--primary-dark);
    font-size:31px;
    font-weight:800;
    font-style:italic;
    font-family:'Playfair Display', serif;
}

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

@media(max-width:760px){
    .register-page{
        padding:12px;
        align-items:flex-start;
    }

    .register-shell{
        max-width:420px;
        min-height:auto;
        grid-template-columns:1fr;
        border-radius:24px;
    }

    .register-visual{
        display:none;
    }

    .register-form-panel{
        padding:26px 18px;
    }

    .mobile-logo{
        display:flex;
        justify-content:center;
        margin-bottom:18px;
    }

    .register-brand.compact{
        color:var(--primary-dark);
    }

    .register-brand.compact span{
        width:42px;
        height:42px;
        background:linear-gradient(135deg,var(--primary),var(--primary-dark));
        color:white;
    }

    .register-brand.compact strong{
        font-size:24px;
    }

    .form-box{
        max-width:100%;
    }

    .form-box h2{
        font-size:26px;
    }

    .registro-subtitulo{
        font-size:13px;
        margin-bottom:20px;
    }

    .registro-input-group input{
        height:50px;
    }
}

@media(max-width:360px){
    .register-form-panel{
        padding:22px 14px;
    }

    .register-brand.compact strong{
        font-size:21px;
    }
}
