:root{
    --ei-green:#075c35;
    --ei-green-deep:#064b2c;
    --ei-lime:#d9ee50;
    --ei-text:#373e48;
    --ei-muted:#7b838a;
    --ei-border:#dfe5df;
    --ei-bg:#f5f7f4;
    --ei-white:#fff;
}

.woocommerce-account .woocommerce{
    max-width:1240px;
    margin:0 auto;
}

.ei-auth-shell{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
    min-height:620px;
    border-radius:28px;
    overflow:hidden;
    background:var(--ei-white);
    box-shadow:0 28px 80px rgba(7,92,53,.10);
    margin:44px auto 70px;
    border:1px solid rgba(7,92,53,.08);
}

.ei-auth-card{
    padding:64px clamp(34px,6vw,82px);
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.ei-auth-brandline{
    display:flex;
    align-items:center;
    gap:9px;
    color:var(--ei-green);
    font-size:13px;
    font-weight:700;
    letter-spacing:.02em;
    margin-bottom:26px;
}

.ei-auth-dot{
    width:9px;
    height:9px;
    border-radius:99px;
    background:var(--ei-lime);
    box-shadow:0 0 0 5px rgba(217,238,80,.24);
}

.ei-auth-card h2{
    margin:0 0 10px;
    font-size:clamp(32px,4vw,48px);
    line-height:1.04;
    color:var(--ei-green);
    letter-spacing:-.03em;
}

.ei-auth-card h3{
    color:var(--ei-text);
    margin:28px 0 14px;
    font-size:18px;
}

.ei-auth-sub{
    color:var(--ei-muted);
    margin:0 0 30px;
    font-size:16px;
    line-height:1.65;
}

.ei-auth-card label>span{
    display:block;
    color:var(--ei-text);
    font-size:14px;
    font-weight:650;
    margin-bottom:8px;
}

.ei-auth-card input[type="email"],
.ei-auth-card input[type="text"],
.ei-auth-card input[type="tel"]{
    width:100%;
    height:54px;
    border:1px solid var(--ei-border);
    border-radius:14px;
    padding:0 16px;
    font-size:16px;
    background:#fff;
    color:var(--ei-text);
    outline:none;
    transition:.2s ease;
    box-sizing:border-box;
}

.ei-auth-card input:focus{
    border-color:var(--ei-green);
    box-shadow:0 0 0 4px rgba(7,92,53,.08);
}

.ei-auth-primary{
    width:100%;
    height:54px;
    border:none;
    border-radius:999px;
    background:var(--ei-lime);
    color:var(--ei-green-deep);
    font-weight:800;
    font-size:15px;
    margin-top:18px;
    cursor:pointer;
    transition:.2s ease;
}

.ei-auth-primary:hover{
    transform:translateY(-1px);
    filter:brightness(.97);
}

.ei-auth-primary:disabled{
    opacity:.6;
    cursor:wait;
    transform:none;
}

.ei-auth-divider{
    display:flex;
    align-items:center;
    gap:14px;
    color:#98a09c;
    font-size:13px;
    margin:25px 0 18px;
}

.ei-auth-divider::before,
.ei-auth-divider::after{
    content:"";
    height:1px;
    background:var(--ei-border);
    flex:1;
}

.ei-auth-social{
    height:54px;
    border:1px solid var(--ei-border);
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:11px;
    text-decoration:none!important;
    color:var(--ei-text)!important;
    background:#fff;
    font-weight:700;
    transition:.2s ease;
}

.ei-auth-social:hover{
    border-color:#bcc7bf;
    background:#fafcf9;
}

.ei-auth-social svg{
    width:20px;
    height:20px;
}

.ei-auth-legal{
    font-size:12.5px;
    color:#949a9d;
    line-height:1.55;
    text-align:center;
    margin:22px 0 0;
}

.ei-auth-side{
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at 22% 18%, rgba(217,238,80,.38), transparent 28%),
        radial-gradient(circle at 82% 74%, rgba(217,238,80,.20), transparent 32%),
        linear-gradient(145deg, var(--ei-green) 0%, #0b6e42 54%, #04472a 100%);
    display:flex;
    align-items:flex-end;
    padding:58px;
}

.ei-auth-side::after{
    content:"";
    position:absolute;
    width:420px;
    height:420px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:50%;
    right:-150px;
    top:-120px;
    box-shadow:0 0 0 45px rgba(255,255,255,.03),0 0 0 90px rgba(255,255,255,.025);
}

.ei-auth-sidecopy{
    position:relative;
    z-index:1;
    max-width:380px;
}

.ei-auth-kicker{
    display:inline-block;
    background:var(--ei-lime);
    color:var(--ei-green);
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    font-weight:800;
    margin-bottom:18px;
}

.ei-auth-side h3{
    color:#fff;
    font-size:42px;
    line-height:1.05;
    margin:0 0 14px;
    letter-spacing:-.03em;
}

.ei-auth-side p{
    color:rgba(255,255,255,.78);
    font-size:16px;
    line-height:1.65;
    margin:0;
}

.ei-auth-mailicon{
    width:68px;
    height:68px;
    display:grid;
    place-items:center;
    border-radius:20px;
    background:rgba(217,238,80,.28);
    color:var(--ei-green);
    font-size:30px;
    margin-bottom:24px;
}

.ei-auth-sent-to{
    background:var(--ei-bg);
    color:var(--ei-green);
    border-radius:12px;
    padding:12px 14px;
    display:inline-block;
    font-weight:700;
    margin:0 0 22px;
}

.ei-auth-linkbtn{
    background:none;
    border:0;
    color:var(--ei-green);
    font-weight:700;
    cursor:pointer;
    padding:8px 10px 8px 0;
    margin-right:10px;
}

.ei-auth-verified{
    border:1px solid rgba(7,92,53,.16);
    background:#f5faf5;
    border-radius:16px;
    padding:14px 16px;
    display:grid;
    grid-template-columns:auto 1fr;
    gap:2px 10px;
    align-items:center;
    margin-bottom:24px;
}

.ei-auth-verified>span{
    grid-row:1/3;
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--ei-lime);
    color:var(--ei-green);
    font-weight:900;
}

.ei-auth-verified strong{color:var(--ei-text);}
.ei-auth-verified small{color:var(--ei-muted);}

.ei-auth-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.ei-auth-rolecards{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.ei-auth-rolecard{
    position:relative;
    border:1px solid var(--ei-border);
    border-radius:16px;
    padding:18px;
    cursor:pointer;
    transition:.2s ease;
}

.ei-auth-rolecard.active{
    border-color:var(--ei-green);
    box-shadow:0 0 0 3px rgba(7,92,53,.07);
    background:#fbfdf9;
}

.ei-auth-rolecard input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.ei-auth-rolecard strong{
    display:block;
    color:var(--ei-green);
    margin-bottom:6px;
}

.ei-auth-rolecard span{
    color:var(--ei-muted);
    font-size:13px;
    line-height:1.45;
}

.ei-auth-seller-fields{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-top:16px;
}

.ei-auth-check{
    display:flex;
    gap:10px;
    align-items:flex-start;
    margin-top:20px;
    font-size:13px;
    color:var(--ei-muted);
}

.ei-auth-check input{
    margin-top:3px;
}

.ei-auth-alert,
.ei-auth-message.error{
    background:#fff2f2;
    color:#9b2d30;
    border:1px solid #f2c7c7;
    border-radius:12px;
    padding:12px 14px;
    margin:0 0 18px;
    font-size:13px;
}

.ei-auth-message{
    margin-top:12px;
    font-size:13px;
}

.ei-auth-message.ok{
    color:var(--ei-green);
}

@media (max-width:900px){
    .ei-auth-shell{grid-template-columns:1fr;}
    .ei-auth-side{min-height:260px;padding:38px;}
    .ei-auth-card{padding:44px 28px;}
}

@media (max-width:560px){
    .ei-auth-shell{margin:20px 0 40px;border-radius:20px;}
    .ei-auth-grid,
    .ei-auth-rolecards,
    .ei-auth-seller-fields{grid-template-columns:1fr;}
    .ei-auth-card h2{font-size:34px;}
    .ei-auth-side h3{font-size:34px;}
}

.ei-auth-facebook{margin-top:12px;}
.ei-auth-facebook-icon{
    width:21px;height:21px;border-radius:50%;display:grid;place-items:center;
    background:#1877f2;color:#fff;font-family:Arial,sans-serif;font-size:17px;font-weight:800;
}
.ei-auth-social-note{
    margin:13px auto 0;
    max-width:420px;
    color:#9aa09d;
    text-align:center;
    font-size:11.5px;
    line-height:1.45;
}

.ei-auth-turnstile{margin-top:18px;display:flex;justify-content:center;min-height:65px;}

/* Social providers — v1.3 */
.ei-auth-social{position:relative;overflow:hidden;border-width:1px;}
.ei-auth-google{border-color:#dadce0!important;background:#fff!important;color:#3c4043!important;}
.ei-auth-google:hover{background:#f8faff!important;border-color:#c5c9ce!important;box-shadow:0 3px 12px rgba(60,64,67,.10);}
.ei-auth-google .ei-google-g{width:21px;height:21px;flex:0 0 21px;}
.ei-auth-facebook{margin-top:12px;border-color:#1877f2!important;background:#1877f2!important;color:#fff!important;}
.ei-auth-facebook:hover{background:#166fe5!important;border-color:#166fe5!important;box-shadow:0 5px 16px rgba(24,119,242,.22);}
.ei-auth-facebook-icon{background:#fff!important;color:#1877f2!important;width:22px!important;height:22px!important;font-size:18px!important;}
.ei-auth-instagram{margin-top:12px;border:0!important;color:#fff!important;background:linear-gradient(115deg,#f9ce34 0%,#ee2a7b 43%,#6228d7 100%)!important;}
.ei-auth-instagram:hover{filter:brightness(.98);box-shadow:0 5px 18px rgba(193,53,132,.24);}
.ei-auth-instagram-icon{width:22px;height:22px;border:2px solid #fff;border-radius:7px;position:relative;box-sizing:border-box;display:inline-block;}
.ei-auth-instagram-icon:before{content:"";position:absolute;width:7px;height:7px;border:2px solid #fff;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%);box-sizing:border-box;}
.ei-auth-instagram-icon:after{content:"";position:absolute;width:3px;height:3px;background:#fff;border-radius:50%;right:3px;top:3px;}

/* v1.5 - dispositivo de confianza */
.ei-auth-remember{margin:14px 0 16px!important;align-items:flex-start!important;}
.ei-auth-remember span{line-height:1.35;}
.ei-auth-remember small{display:block;margin-top:3px;font-weight:400;color:#747b83;}


/* v1.6.0 — perfiles y consentimientos */
.ei-auth-role-customer{background:#edf8f1;border-color:#b9dcc7;}
.ei-auth-role-customer:hover,.ei-auth-role-customer.active{background:#075c35;border-color:#075c35;}
.ei-auth-role-customer:hover strong,.ei-auth-role-customer:hover span,.ei-auth-role-customer.active strong,.ei-auth-role-customer.active span{color:#fff;}
.ei-auth-role-seller{background:#f3dc4e;border-color:#e3c92e;}
.ei-auth-role-seller strong,.ei-auth-role-seller span{color:#075c35;}
.ei-auth-role-seller:hover,.ei-auth-role-seller.active{background:#e8ce2e;border-color:#075c35;box-shadow:0 0 0 3px rgba(7,92,53,.08);}
.ei-auth-detail-fields{margin-top:18px;padding-top:4px;}
.ei-auth-detail-fields .ei-auth-grid{grid-template-columns:1fr 1fr;}
.ei-auth-wide{grid-column:1/-1;}
.ei-auth-consents{margin-top:18px;padding:14px 16px;background:#f7f9f8;border:1px solid var(--ei-border);border-radius:14px;}
.ei-auth-consents .ei-auth-check{margin-top:10px;}
.ei-auth-consents .ei-auth-check:first-child{margin-top:0;}
.ei-auth-card select{width:100%;min-height:48px;border:1px solid var(--ei-border);border-radius:12px;background:#fff;padding:0 13px;color:var(--ei-text);}
@media(max-width:700px){.ei-auth-detail-fields .ei-auth-grid{grid-template-columns:1fr}.ei-auth-wide{grid-column:auto}}

/* EI Darduse Auth 1.6.1 - panel lateral sticky en escritorio */
@media (min-width:901px){
    .ei-auth-shell{align-items:stretch;overflow:visible;}
    .ei-auth-side{
        position:sticky;
        top:24px;
        align-self:start;
        height:calc(100vh - 48px);
        min-height:620px;
        max-height:900px;
        border-radius:0 28px 28px 0;
    }
}

/* EI Dardusé Auth 1.7.0 — alta progresiva */
.ei-auth-role-title{margin-bottom:6px!important;}
.ei-auth-role-help{margin:0 0 18px;color:var(--ei-muted);font-size:13px;line-height:1.5;}
.ei-auth-rolecard,.ei-auth-rolecard:hover,.ei-auth-rolecard.active{border:0!important;outline:0!important;box-shadow:none!important;}
.ei-auth-role-customer{background:rgba(7,92,53,.05)!important;}
.ei-auth-role-customer strong,.ei-auth-role-customer span{color:#075c35!important;}
.ei-auth-role-customer:hover,.ei-auth-role-customer.active{background:#075c35!important;}
.ei-auth-role-customer:hover strong,.ei-auth-role-customer:hover span,.ei-auth-role-customer.active strong,.ei-auth-role-customer.active span{color:#fff!important;}
.ei-auth-role-seller{background:rgba(243,220,78,.50)!important;}
.ei-auth-role-seller strong,.ei-auth-role-seller span{color:#075c35!important;}
.ei-auth-role-seller:hover,.ei-auth-role-seller.active{background:#f3dc4e!important;}
.ei-auth-profile-fields{margin-top:24px;}
.ei-auth-section{padding:20px 0;border-top:1px solid #edf0ee;}
.ei-auth-section:first-child{border-top:0;padding-top:0;}
.ei-auth-section h4{margin:0 0 14px;font-size:15px;color:var(--ei-text);}
.ei-auth-card input::placeholder{color:rgba(37,42,52,.30)!important;opacity:1;}
.ei-auth-copy-name{margin:12px 0 0!important;}
.ei-auth-card select:disabled{background:#f5f6f5;color:#a5aaa7;cursor:not-allowed;}
.ei-auth-profile-fields[hidden],.ei-auth-detail-fields[hidden]{display:none!important;}

/* ==========================================================
   EI DARDUSÉ MODERN AUTH 1.7.1 — AJUSTE VISUAL RESPONSIVE
   SOLO CSS: layout, espaciado, desktop/tablet/móvil
   ========================================================== */

/* Más aire útil para el formulario en escritorio */
.woocommerce-account .woocommerce{
    max-width:1320px;
    padding-left:18px;
    padding-right:18px;
    box-sizing:border-box;
}

.ei-auth-shell{
    width:100%;
    grid-template-columns:minmax(0,1.16fr) minmax(390px,.84fr);
}

.ei-auth-card{
    min-width:0;
    padding:56px clamp(34px,4.2vw,64px);
}

/* Las secciones de Cliente/Vendedor SIEMPRE van una bajo otra.
   Solo los campos interiores se organizan en 2 columnas. */
.ei-auth-customer-fields,
.ei-auth-seller-fields{
    display:block;
    width:100%;
    min-width:0;
}

.ei-auth-customer-fields[hidden],
.ei-auth-seller-fields[hidden]{
    display:none!important;
}

.ei-auth-section{
    width:100%;
    min-width:0;
    box-sizing:border-box;
    padding:24px 0;
}

.ei-auth-section + .ei-auth-section{
    margin-top:2px;
}

.ei-auth-section h4{
    margin-bottom:16px;
}

.ei-auth-grid{
    width:100%;
    min-width:0;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:18px;
    row-gap:16px;
}

.ei-auth-grid > label{
    min-width:0;
    width:100%;
    margin:0;
}

.ei-auth-wide{
    grid-column:1 / -1!important;
}

/* Todos los campos con exactamente la misma geometría */
.ei-auth-card input[type="email"],
.ei-auth-card input[type="text"],
.ei-auth-card input[type="tel"],
.ei-auth-card input[type="date"],
.ei-auth-card input[type="url"],
.ei-auth-card select{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    height:54px;
    min-height:54px;
    border:1px solid var(--ei-border);
    border-radius:14px;
    padding:0 16px;
    font-size:15px;
    line-height:1;
    background:#fff;
    color:var(--ei-text);
    box-sizing:border-box;
    outline:none;
}

.ei-auth-card input[type="date"]{
    padding-right:12px;
}

.ei-auth-card select{
    padding-right:38px;
    text-overflow:ellipsis;
}

.ei-auth-card input[type="date"]:focus,
.ei-auth-card input[type="url"]:focus,
.ei-auth-card select:focus{
    border-color:var(--ei-green);
    box-shadow:0 0 0 4px rgba(7,92,53,.08);
}

/* Tarjetas de selección: absolutamente sin borde, outline ni halo */
.ei-auth-rolecards{
    gap:14px;
}

.ei-auth-rolecard,
.ei-auth-rolecard:hover,
.ei-auth-rolecard:focus,
.ei-auth-rolecard:focus-within,
.ei-auth-rolecard.active{
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
}

.ei-auth-rolecard{
    min-height:118px;
    padding:20px;
    box-sizing:border-box;
}

.ei-auth-role-customer{
    background:rgba(7,92,53,.055)!important;
}

.ei-auth-role-customer:hover,
.ei-auth-role-customer.active{
    background:#075c35!important;
}

.ei-auth-role-seller{
    background:rgba(243,220,78,.52)!important;
}

.ei-auth-role-seller:hover,
.ei-auth-role-seller.active{
    background:#f3dc4e!important;
}

/* Checkbox representante y consentimientos mejor alineados */
.ei-auth-copy-name{
    max-width:520px;
}

.ei-auth-check{
    line-height:1.5;
}

.ei-auth-check input[type="checkbox"]{
    flex:0 0 auto;
}

.ei-auth-consents{
    width:100%;
    box-sizing:border-box;
    margin-top:22px;
    padding:18px 18px;
}

/* Turnstile centrado y protegido contra overflow */
.ei-auth-turnstile{
    width:100%;
    max-width:100%;
    overflow:hidden;
    align-items:flex-start;
}

/* Panel derecho: proporcional y limpio */
@media (min-width:901px){
    .ei-auth-side{
        width:100%;
        box-sizing:border-box;
        padding:54px 48px;
    }
}

/* Tablet: una sola columna exterior y panel verde compacto */
@media (max-width:900px){
    .woocommerce-account .woocommerce{
        max-width:760px;
        padding-left:16px;
        padding-right:16px;
    }

    .ei-auth-shell{
        grid-template-columns:1fr;
        margin:26px auto 48px;
    }

    .ei-auth-card{
        padding:44px 34px;
    }

    .ei-auth-side{
        position:relative!important;
        top:auto!important;
        height:auto!important;
        min-height:250px!important;
        max-height:none!important;
        border-radius:0 0 28px 28px!important;
        padding:42px 38px;
    }

    .ei-auth-sidecopy{
        max-width:520px;
    }
}

/* Móvil grande / pequeño */
@media (max-width:620px){
    .woocommerce-account .woocommerce{
        width:100%;
        padding-left:10px;
        padding-right:10px;
    }

    .ei-auth-shell{
        width:100%;
        margin:12px auto 32px;
        border-radius:20px;
    }

    .ei-auth-card{
        padding:30px 20px 34px;
    }

    .ei-auth-brandline{
        margin-bottom:20px;
    }

    .ei-auth-card h2{
        font-size:32px;
        line-height:1.08;
    }

    .ei-auth-sub{
        font-size:14px;
        line-height:1.55;
        margin-bottom:22px;
    }

    .ei-auth-role-title{
        font-size:17px!important;
        line-height:1.3;
    }

    .ei-auth-role-help{
        margin-bottom:14px;
    }

    .ei-auth-rolecards,
    .ei-auth-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .ei-auth-rolecard{
        min-height:0;
        padding:17px 18px;
        border-radius:15px;
    }

    .ei-auth-profile-fields{
        margin-top:20px;
    }

    .ei-auth-section{
        padding:20px 0;
    }

    .ei-auth-card input[type="email"],
    .ei-auth-card input[type="text"],
    .ei-auth-card input[type="tel"],
    .ei-auth-card input[type="date"],
    .ei-auth-card input[type="url"],
    .ei-auth-card select{
        height:52px;
        min-height:52px;
        font-size:16px; /* evita zoom automático en iOS */
        border-radius:13px;
    }

    .ei-auth-consents{
        padding:15px 14px;
        border-radius:13px;
    }

    .ei-auth-consents .ei-auth-check{
        gap:9px;
        font-size:12.5px;
    }

    .ei-auth-primary{
        height:52px;
        margin-top:16px;
    }

    .ei-auth-side{
        min-height:220px!important;
        padding:32px 24px!important;
    }

    .ei-auth-side h3{
        font-size:31px;
    }

    .ei-auth-side p{
        font-size:14px;
    }
}

/* Turnstile: cabe incluso en teléfonos angostos */
@media (max-width:380px){
    .ei-auth-card{
        padding-left:16px;
        padding-right:16px;
    }

    .ei-auth-turnstile .cf-turnstile{
        transform:scale(.88);
        transform-origin:top center;
        margin-bottom:-8px;
    }
}

/* v1.8.1 refinements */
.ei-auth-date-wrap{position:relative;display:block}.ei-auth-date-wrap input{width:100%;padding-right:48px}.ei-auth-calendar-icon{position:absolute;right:17px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:14px;opacity:.48}.ei-auth-url-field{display:flex!important;align-items:center;border:1px solid #d9e0dc;border-radius:14px;overflow:hidden;background:#fff;min-height:48px}.ei-auth-url-prefix{padding-left:16px;color:#18271f!important;font-weight:500;white-space:nowrap}.ei-auth-url-field input{border:0!important;border-radius:0!important;padding-left:2px!important;box-shadow:none!important;min-width:0}.ei-auth-field-help{display:block;margin-top:7px;color:rgba(37,42,52,.58);font-size:12px;line-height:1.35}.ei-auth-grid input[type=file]{padding:11px 12px;height:auto}@media(max-width:600px){.ei-auth-url-prefix{padding-left:13px}.ei-auth-date-wrap input{padding-right:44px}}


/* v1.9.1 — beneficios laterales Dardusé */
.ei-auth-side-benefits{display:grid;gap:14px;margin-top:28px;max-width:360px}
.ei-auth-side-benefits>div{padding:14px 0;border-top:1px solid rgba(255,255,255,.16)}
.ei-auth-side-benefits strong{display:block;color:#d9ef4a;font-size:15px;line-height:1.25;margin-bottom:4px}
.ei-auth-side-benefits span{display:block;color:rgba(255,255,255,.82);font-size:13px;line-height:1.45}
@media(max-width:767px){.ei-auth-side-benefits{margin-top:20px;gap:10px}.ei-auth-side-benefits>div{padding:10px 0}.ei-auth-side-benefits strong{font-size:14px}.ei-auth-side-benefits span{font-size:12px}}
