/* =====================================================================
   UGO DELIVERY — Portal de Comercios y Aliados (login)
   Pantalla dividida: izquierda oscura (propuesta de valor), derecha blanca (acceso)
   ===================================================================== */
.lc, .lc * { box-sizing: border-box; }
.lc {
    --lc-naranja: #FF5500;
    --lc-naranja-2: #FF6B00;
    --lc-ink: #0F172A;
    --lc-s50: #F8FAFC;
    --lc-s100: #F1F5F9;
    --lc-s200: #E2E8F0;
    --lc-s400: #94A3B8;
    --lc-s500: #64748B;
    --lc-s700: #334155;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    color: var(--lc-ink);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.lc a { text-decoration: none; }
.lc a:focus-visible, .lc button:focus-visible, .lc input:focus-visible { outline: 2px solid var(--lc-naranja); outline-offset: 2px; }

/* ---------- Columna izquierda ---------- */
.lc-marca {
    position: relative; overflow: hidden; color: #fff;
    padding: 48px clamp(32px, 5vw, 80px);
    display: flex; flex-direction: column;
    background:
        radial-gradient(60rem 30rem at 110% -10%, rgba(255,85,0,.28), transparent 60%),
        radial-gradient(40rem 30rem at -20% 110%, rgba(255,107,0,.14), transparent 60%),
        var(--lc-ink);
}
.lc-marca::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
.lc-marca > * { position: relative; }
.lc-logo-fila { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lc-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 14px; padding: 8px 14px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }
.lc-logo img { height: 34px; width: auto; display: block; }
.lc-badge {
    font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: #FED7AA; border: 1px solid rgba(251,146,60,.35); background: rgba(249,115,22,.1);
    border-radius: 999px; padding: 5px 12px;
}
.lc-hero { margin: auto 0; padding: 64px 0; max-width: 34rem; }
.lc-hero h1 {
    font-size: clamp(2rem, 3.2vw, 2.9rem); font-weight: 800; line-height: 1.1;
    letter-spacing: -.02em; margin: 0; text-wrap: balance; color: #fff;
}
.lc-hero h1 span { color: var(--lc-naranja-2); }
.lc-hero > p { margin: 16px 0 0; color: #CBD5E1; line-height: 1.6; max-width: 28rem; }
.lc-pilares { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 20px; }
.lc-pilares li { display: flex; gap: 16px; }
.lc-pilar__icono {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; color: #FDBA74;
    background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.lc-pilar__icono svg { width: 20px; height: 20px; }
.lc-pilares div > strong { display: block; font-weight: 700; color: #fff; }
.lc-pilares div > span { display: block; font-size: .88rem; color: var(--lc-s400); line-height: 1.5; margin-top: 2px; }

.lc-social {
    max-width: 28rem; display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; border-radius: 16px;
    background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lc-social__avatares { display: flex; flex-shrink: 0; }
.lc-social__avatares span {
    width: 36px; height: 36px; border-radius: 50%; margin-left: -8px;
    display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff;
    box-shadow: 0 0 0 2px #1a2438;
}
.lc-social__avatares span:first-child { margin-left: 0; }
.lc-social strong { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.lc-social small { color: var(--lc-s400); font-size: .85rem; }

/* ---------- Columna derecha ---------- */
.lc-acceso { background: #fff; display: flex; flex-direction: column; padding: 48px clamp(24px, 4vw, 56px); }
.lc-acceso__centro { flex: 1; display: grid; place-items: center; }
.lc-form-caja { width: 100%; max-width: 420px; }
.lc-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lc-s500);
}
.lc-eyebrow svg { width: 16px; height: 16px; color: var(--lc-naranja); }
.lc-form-caja h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 0; color: var(--lc-ink); }
.lc-sub { margin: 8px 0 0; color: var(--lc-s500); }

.lc-alerta { margin-top: 24px; padding: 12px 16px; border-radius: 12px; font-size: .88rem; display: flex; gap: 10px; align-items: flex-start; }
.lc-alerta--error { background: #FEF2F2; color: #991B1B; box-shadow: inset 0 0 0 1px #FECACA; }
.lc-alerta--exito { background: #ECFDF5; color: #065F46; box-shadow: inset 0 0 0 1px #A7F3D0; }
.lc-alerta svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.lc-form { margin-top: 32px; display: grid; gap: 20px; }
.lc-label { display: block; font-size: .88rem; font-weight: 600; color: var(--lc-s700); margin-bottom: 6px; }
.lc-campo {
    display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px;
    border: 1px solid var(--lc-s200); background: var(--lc-s50); border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.lc-campo:focus-within { border-color: var(--lc-naranja); box-shadow: 0 0 0 4px rgba(255,85,0,.14); background: #fff; }
.lc-campo.error { border-color: #DC2626; box-shadow: 0 0 0 4px rgba(220,38,38,.1); }
.lc-campo > svg { width: 18px; height: 18px; color: var(--lc-s400); flex-shrink: 0; }
.lc-campo input {
    width: 100%; min-width: 0; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: .95rem; color: var(--lc-ink); padding: 0;
}
.lc-campo input::placeholder { color: var(--lc-s400); }
.lc-ojo { flex-shrink: 0; margin-right: -6px; padding: 7px; border: 0; background: none; border-radius: 8px; color: var(--lc-s400); cursor: pointer; display: inline-flex; }
.lc-ojo:hover { color: var(--lc-s700); background: var(--lc-s100); }
.lc-ojo svg { width: 18px; height: 18px; }
.lc-error-txt { display: none; margin: 6px 0 0; font-size: .78rem; color: #DC2626; }
.lc-campo.error + .lc-error-txt { display: block; }

.lc-opciones { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.lc-check { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: #475569; cursor: pointer; }
.lc-check input { width: 16px; height: 16px; accent-color: var(--lc-naranja); margin: 0; }
.lc-link { font-size: .88rem; font-weight: 600; color: var(--lc-naranja); }
.lc-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.lc-btn {
    margin-top: 4px; height: 48px; width: 100%; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--lc-naranja); color: #fff; font: inherit; font-weight: 700; font-size: .95rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 10px 24px -8px rgba(255,85,0,.55);
    transition: transform .15s, box-shadow .2s, background-color .2s;
}
.lc-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -10px rgba(255,85,0,.6); background: #F04D00; }
.lc-btn:active { transform: none; }
.lc-btn:disabled { opacity: .85; cursor: wait; transform: none; }
.lc-btn svg { width: 18px; height: 18px; }
.lc-spin { animation: lc-giro .8s linear infinite; }
@keyframes lc-giro { to { transform: rotate(360deg); } }

.lc-o { margin: 32px 0; display: flex; align-items: center; gap: 16px; font-size: .78rem; color: var(--lc-s400); }
.lc-o::before, .lc-o::after { content: ""; height: 1px; flex: 1; background: var(--lc-s200); }
.lc-sumar { border: 1px solid var(--lc-s200); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lc-sumar p { margin: 0; font-size: .88rem; color: #475569; }
.lc-sumar a { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--lc-ink); transition: color .15s; }
.lc-sumar a:hover { color: var(--lc-naranja); }
.lc-sumar a svg { width: 16px; height: 16px; }
.lc-cliente { margin: 20px 0 0; text-align: center; font-size: .82rem; color: var(--lc-s500); }
.lc-cliente a { color: var(--lc-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lc-seguro { margin: 40px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .78rem; color: var(--lc-s400); }
.lc-seguro svg { width: 16px; height: 16px; color: #10B981; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .lc { grid-template-columns: 1fr; }
    .lc-marca { padding: 28px 24px; }
    .lc-hero { padding: 36px 0 32px; }
    .lc-social { display: none; }
    .lc-acceso { padding: 36px 24px; }
}
@media (prefers-reduced-motion: reduce) { .lc-btn, .lc-campo { transition: none; } .lc-spin { animation: none; } }

/* Autocompletado de Chrome: sin el fondo azul/lila que rompe el diseño */
.lc-campo input:-webkit-autofill,
.lc-campo input:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0 40px #F8FAFC inset;
    -webkit-text-fill-color: #0F172A;
    caret-color: #0F172A;
    transition: background-color 600000s 0s;
}
.lc-campo:focus-within input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; }
