/* Portal de Actualización de Aliados — COOPORIGEN
   Acceso en dos paneles, misma estructura de familia que Ventas (formulario
   siempre a la derecha), pero con los tonos invertidos a propósito: aquí el
   panel claro va a la izquierda (como papel) y el oscuro a la derecha (el
   formulario), para que de un vistazo se note cuál portal es cuál. Clases
   con prefijo "lc-" para no tocar .auth-page/.auth-card, que usan
   activar_cuenta, autorizacion y olvide_contrasena. */

body:has(.lc-body) { margin: 0; background: #102824; }

.lc-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', -apple-system, Segoe UI, sans-serif;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  /* Variante clara del verde medio, derivada de la misma marca, usada como
     acento sobre fondos oscuros. */
  --verde-luz: color-mix(in srgb, #315C55 50%, white);
}

/* ══════════════ PANEL IZQUIERDO — claro, el sello sobre "papel" ══════════════ */
.lc-story {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 54px;
  overflow: hidden;
  color: #102824;
  background:
    radial-gradient(640px 420px at 12% -10%, rgba(49,92,85,.08), transparent 55%),
    #f6f8f7;
}

.lc-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; }
.lc-top img {
  height: 38px; width: 38px; object-fit: contain; border-radius: 9px; background: #fff; padding: 4px;
  box-shadow: 0 0 0 1px rgba(16,40,36,.1), 0 4px 10px rgba(16,40,36,.06);
}
.lc-top-name { font-weight: 800; letter-spacing: .4px; font-size: 15px; color: #102824; }
.lc-top-sub { font-size: 10.5px; color: #8aa39d; letter-spacing: .14em; text-transform: uppercase; }

.lc-mid { position: relative; z-index: 2; margin: auto 0; }
.lc-eyebrow-left {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #315C55; margin-bottom: 20px;
}
.lc-eyebrow-left::before { content: ''; width: 20px; height: 1.5px; background: #315C55; }
.lc-mid h1 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.14; letter-spacing: -.4px; font-weight: 800;
  margin: 0 0 14px; color: #102824;
}
.lc-mid h1 b {
  color: #102824;
  background: linear-gradient(to top, rgba(250,197,105,.5) 36%, transparent 36%);
  padding: 0 1px;
}
.lc-mid p { max-width: 360px; color: #5a6963; font-size: 14.5px; line-height: 1.6; margin: 0; }

/* El sello: un medallón oscuro sobre el panel claro, como un timbre sobre papel */
.lc-seal { margin-top: 30px; display: flex; align-items: center; gap: 20px; }
.lc-seal-mark { position: relative; width: 108px; height: 108px; flex: none; }
.lc-seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lc-seal-ring circle { fill: none; }
.lc-ring-bg { stroke: rgba(16,40,36,.1); stroke-width: 1.4; }
.lc-ring-fg {
  stroke: #315C55; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 301.6; stroke-dashoffset: 301.6;
  filter: drop-shadow(0 0 5px rgba(49,92,85,.35));
  animation: lcDibujarAnillo 1.6s cubic-bezier(.16,.84,.44,1) .3s forwards;
}
@keyframes lcDibujarAnillo { to { stroke-dashoffset: 48; } }
.lc-seal-dash {
  stroke: rgba(49,92,85,.35); stroke-width: 1; stroke-dasharray: 2 5;
  animation: lcGiro 40s linear infinite;
  transform-origin: 54px 54px;
}
@keyframes lcGiro { to { transform: rotate(360deg); } }
.lc-seal-core {
  position: absolute; inset: 15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #16342e, #0d231f);
  box-shadow: 0 10px 26px rgba(16,40,36,.28), 0 0 0 1px rgba(16,40,36,.12);
  display: grid; place-items: center;
}
.lc-check { width: 32px; height: 32px; }
.lc-check path {
  fill: none; stroke: #FAC569; stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: lcMarca .5s ease 1s forwards;
}
@keyframes lcMarca { to { stroke-dashoffset: 0; } }

.lc-seal-caption b { display: block; font-size: 18px; font-weight: 800; color: #102824; }
.lc-seal-caption span { font-size: 11.5px; color: #8aa39d; line-height: 1.5; max-width: 190px; display: block; margin-top: 4px; }

.lc-stats { position: relative; z-index: 2; display: flex; gap: 34px; margin-top: 32px; }
.lc-stat b { display: block; font-size: 22px; font-weight: 800; color: #102824; }
.lc-stat span { font-size: 11px; color: #8aa39d; letter-spacing: .04em; }

.lc-bottom { position: relative; z-index: 2; font-size: 11.5px; color: #9fb4ae; }

/* ══════════════ PANEL DERECHO — verde oscuro, el formulario ══════════════ */
.lc-formside {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 44px;
  color: #fff;
  background:
    radial-gradient(640px 420px at 85% -10%, rgba(250,197,105,.08), transparent 55%),
    radial-gradient(700px 560px at 100% 110%, rgba(49,92,85,.55), transparent 60%),
    linear-gradient(155deg, #0d231f, #102824 55%, #0a1c19);
}

.lc-wrap {
  width: 100%; max-width: 380px;
  opacity: 0; transform: translateY(14px);
  animation: lcEntrarCard .7s cubic-bezier(.16,.84,.44,1) .15s forwards;
}
@keyframes lcEntrarCard { to { opacity: 1; transform: none; } }

.lc-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--verde-luz);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.lc-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #FAC569; }
.lc-wrap h2 { margin: 0 0 6px; font-size: 25px; font-weight: 800; letter-spacing: -.3px; color: #fff; }
.lc-wrap > p { margin: 0 0 24px; font-size: 13.5px; color: rgba(255,255,255,.55); }

.lc-alert {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .7rem .85rem; border-radius: 10px; font-size: .84rem;
  margin-bottom: 1.1rem; line-height: 1.4;
  background: rgba(251,235,231,.92); color: #8A3B24; border: 1px solid #E7C3B7;
}

.lc-field { margin-bottom: 17px; }
.lc-field label {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 7px;
}
.lc-input {
  display: flex; align-items: center; gap: 10px;
  border: none; border-bottom: 1.5px solid rgba(255,255,255,.22);
  padding: 0 2px 10px;
  transition: border-color .2s ease;
}
.lc-input svg { width: 16px; height: 16px; color: rgba(255,255,255,.4); flex: none; transition: color .2s ease; }
.lc-input input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  padding: 2px 0; font-size: 1rem; color: #fff; font-family: inherit;
}
.lc-input input::placeholder { color: rgba(255,255,255,.35); }
.lc-input:focus-within { border-color: #FAC569; }
.lc-input:focus-within svg { color: #FAC569; }

.lc-forgot { text-align: right; margin-top: 8px; }
.lc-forgot a { font-size: 12px; color: rgba(255,255,255,.6); text-decoration: none; }
.lc-forgot a:hover { color: #FAC569; }

.lc-captcha {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px; padding: .65rem .9rem; margin-bottom: .4rem;
  font-size: .82rem; color: rgba(255,255,255,.72);
}
.lc-captcha b { font-weight: 800; color: var(--verde-luz); font-size: .98rem; letter-spacing: .03em; }
.lc-captcha-nota { margin: -.2rem 0 1.1rem; font-size: .76rem; color: rgba(255,255,255,.5); }

.lc-btn {
  width: 100%; margin-top: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 18px; border: none; border-radius: 12px;
  background: linear-gradient(100deg, #FAC569, #ffb547);
  color: #102824;
  font-size: .86rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 14px 30px rgba(250,197,105,.3);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.lc-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(250,197,105,.42); filter: brightness(1.03); }
.lc-btn:active { transform: translateY(0); }
.lc-btn svg { width: 16px; height: 16px; transition: transform .25s ease; }
.lc-btn:hover svg { transform: translateX(3px); }

.lc-foot { margin-top: 24px; text-align: center; font-size: 12px; color: rgba(255,255,255,.5); }

/* ── Firma escondida del desarrollador ──
   Por defecto cae sobre el panel claro de la izquierda, así que es oscura;
   en celular solo se ve el panel oscuro del formulario, así que se aclara
   en la media query de abajo. */
.firma-dev {
  position: fixed; left: 20px; bottom: 18px; z-index: 5;
  display: flex; align-items: center;
  font-family: ui-monospace, "SF Mono", "Consolas", monospace;
  font-size: 11px; letter-spacing: .03em;
  cursor: default; user-select: none; -webkit-tap-highlight-color: transparent;
  outline: none;
}
.firma-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  background: rgba(16,40,36,.22);
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
}
.firma-txt {
  max-width: 0; overflow: hidden; white-space: nowrap;
  opacity: 0; transform: translateX(-4px);
  color: rgba(16,40,36,.55);
  transition: max-width .42s cubic-bezier(.4,0,.2,1),
              opacity .28s ease .06s,
              transform .42s cubic-bezier(.4,0,.2,1),
              padding .42s ease;
}
.firma-txt b {
  font-weight: 700;
  background: linear-gradient(90deg, #315C55, #FAC569);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.firma-dev:hover .firma-dot, .firma-dev:focus-visible .firma-dot {
  background: #FAC569; transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(250,197,105,.22), 0 0 14px 3px rgba(250,197,105,.4);
}
.firma-dev:hover .firma-txt, .firma-dev:focus-visible .firma-txt {
  max-width: 180px; opacity: 1; transform: translateX(0); padding-left: 9px;
}

@media (max-width: 980px) {
  .lc-body { grid-template-columns: 1fr; }
  .lc-story { display: none; }
  .lc-formside { min-height: 100vh; }
  /* El panel visible (el formulario) ya es oscuro por defecto -- solo
     falta aclarar la firma, que en celular cae sobre ese panel oscuro. */
  .firma-dot { background: rgba(255,255,255,.22); }
  .firma-txt { color: rgba(255,255,255,.55); }
}
@media (max-width: 480px) {
  .lc-formside { padding: 32px 22px; }
  .firma-dev { left: 14px; bottom: 12px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-wrap { animation: none; opacity: 1; transform: none; }
  .lc-ring-fg { animation: none; stroke-dashoffset: 48; }
  .lc-check path { animation: none; stroke-dashoffset: 0; }
  .lc-seal-dash { animation: none; }
}
