/* ============================================================
   /login — mismo sistema visual que la landing, /como-funciona y /api-docs (misma paleta,
   misma tipografía, cargadas vía landing.css bajo body.landing). Esta página NO lleva el
   header ni el footer del resto del sitio — es un split de dos paneles, así que todo el
   layout y los componentes (campo, alerta, tarjeta de evidencia oscura) son nuevos, con
   prefijo lg-.

   REGLA DE SCROLL: overflow-x:clip en el body, nunca hidden — hidden convertiría a body en
   contenedor de scroll y rompería cualquier position:sticky descendiente futuro.
   ============================================================ */

body.landing.login { overflow-x: clip; min-height: 100vh; }

.lg-split { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }

/* ------------------------------------------------------------
   Columna izquierda — formulario.
   ------------------------------------------------------------ */
.lg-form-col {
  flex: 1 1 min(100%, 440px); min-width: 0;
  display: flex; flex-direction: column;
  padding: clamp(24px, 3.4vw, 40px) clamp(20px, 4.4vw, 64px);
  background: var(--lp-white);
}
.lg-form-col .brand-logo { height: 28px; }

.lg-form-center { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.lg-form-wrap { width: 100%; max-width: 420px; }

body.landing.login h1.lg-title {
  font-size: clamp(30px, 3.6vw, 42px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.02; margin: 14px 0 10px;
}
.lg-subtitle { font-size: 15.5px; line-height: 1.5; color: var(--lp-body); margin-bottom: 28px; }

.lg-alert { display: flex; align-items: baseline; gap: 12px; border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
.lg-alert-error { background: #fdf6f6; border: 1px solid #f0d2d2; }
.lg-alert-success { background: var(--lp-ok-bg); border: 1px solid #b7e3ce; }
.lg-alert-code {
  font-family: var(--lp-mono-font); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0;
}
.lg-alert-error .lg-alert-code, .lg-alert-error .lg-alert-msg { color: #8f1d1d; }
.lg-alert-success .lg-alert-code, .lg-alert-success .lg-alert-msg { color: var(--lp-ok-ink); }
.lg-alert-msg { font-size: 14px; line-height: 1.5; }

.lg-field { margin-bottom: 18px; }
.lg-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lg-label {
  font-family: var(--lp-mono-font); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--lp-mono);
}
.lg-forgot-link { font-size: 13px; font-weight: 500; color: var(--lp-accent); text-decoration: none; }
.lg-forgot-link:hover { text-decoration: underline; }

.lg-input {
  display: block; width: 100%; min-width: 0; box-sizing: border-box;
  border: 1px solid #d6dce6; border-radius: 12px; padding: 14px 16px;
  font-family: var(--lp-sans); font-size: 15.5px; color: var(--lp-ink);
  background: var(--lp-white); outline: none;
  transition: border-color 140ms ease;
}
.lg-input:focus { border-color: var(--lp-accent); }
.lg-input::placeholder { color: #9aa5b3; }

.lg-password-wrap { position: relative; }
.lg-password-wrap .lg-input { padding-right: 88px; }
.lg-toggle-pw {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  height: 44px; padding: 0 14px; display: inline-flex; align-items: center;
  border: none; background: none; border-radius: 999px; cursor: pointer;
  font-family: var(--lp-mono-font); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--lp-mono);
  transition: background 140ms ease, color 140ms ease;
}
.lg-toggle-pw:hover { color: var(--lp-ink); background: #f4f6fa; }

.lg-submit {
  width: 100%; justify-content: center; margin-top: 6px;
  padding: 15px 26px; font-size: 15.5px; font-weight: 600; min-height: 44px;
}

.lg-divider { display: flex; align-items: center; gap: 14px; margin: 32px 0 22px; }
.lg-divider::before, .lg-divider::after { content: ''; flex: 1; height: 1px; background: #e6e9ef; }
.lg-divider span {
  font-family: var(--lp-mono-font); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--lp-mono); white-space: nowrap;
}

.lg-api-card { border: 1px solid var(--lp-line); border-radius: 14px; padding: 18px 20px; }
.lg-api-card h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 6px; }
.lg-api-card p { font-size: 14px; line-height: 1.55; color: var(--lp-body); margin: 0 0 14px; }
.lg-api-btn { padding: 9px 18px; font-size: 13.5px; min-height: 44px; }

.lg-footer {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--lp-line-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
}
.lg-footer-copy { font-family: var(--lp-mono-font); font-size: 11px; color: var(--lp-mono); white-space: nowrap; }
.lg-footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; }
.lg-footer-links a {
  font-size: 13.5px; color: var(--lp-mono); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.lg-footer-links a:hover { color: var(--lp-ink); }

/* ------------------------------------------------------------
   Columna derecha — panel oscuro con la tarjeta de evidencia.
   ------------------------------------------------------------ */
.lg-dark-col {
  flex: 1 1 min(100%, 460px); min-width: 0; position: relative; overflow: clip;
  background: var(--lp-dark); color: #a7b2c2;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4.4vw, 64px);
}
.lg-dark-glow {
  position: absolute; top: -12%; right: -14%; width: 760px; height: 620px;
  background: radial-gradient(circle, rgba(76,179,255,0.16), transparent 66%);
  pointer-events: none;
}
.lg-dark-inner { position: relative; z-index: 1; width: 100%; max-width: 520px; }
.lg-dark-eyebrow {
  display: block; font-family: var(--lp-mono-font); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: #8b97a8; margin-bottom: 16px;
}
body.landing.login h2.lg-dark-title {
  font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.042em;
  line-height: 1.02; max-width: 22ch; color: #ffffff; margin-bottom: 32px;
}

.lg-evidence { background: rgba(255,255,255,0.03); border: 1px solid #26303f; border-radius: 18px; overflow: hidden; }
.lg-evidence-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #26303f; }
.lg-evidence-eyebrow { font-family: var(--lp-mono-font); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: #8b97a8; }
.lg-chip-cert {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid #2f6d9c; background: rgba(76,179,255,0.1); color: #cfe6f7;
  font-family: var(--lp-mono-font); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.lg-chip-dot { width: 6px; height: 6px; border-radius: 999px; background: #00a86b; flex-shrink: 0; }

.lg-timeline { list-style: none; margin: 0; padding: 18px 20px; }
.lg-timeline li { position: relative; padding: 0 0 20px 26px; border-left: 1.5px solid #26303f; }
.lg-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.lg-timeline-dot {
  position: absolute; left: -6.5px; top: 0; width: 12px; height: 12px; border-radius: 999px;
  background: var(--lp-dark); border: 1.5px solid #4cb3ff;
}
.lg-timeline-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lg-timeline-name { font-size: 14px; font-weight: 600; color: #ffffff; }
.lg-timeline-time { font-family: var(--lp-mono-font); font-size: 11.5px; color: #8b97a8; }
.lg-timeline-hash { font-family: var(--lp-mono-font); font-size: 11.5px; color: #8b97a8; margin-top: 4px; overflow-wrap: anywhere; }

.lg-evidence-foot {
  padding: 12px 20px; border-top: 1px solid #26303f;
  font-family: var(--lp-mono-font); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: #8b97a8;
}

.lg-seal-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lg-seal {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid #2d3847; color: #a7b2c2; font-family: var(--lp-mono-font); font-size: 11px; letter-spacing: 0.04em;
}
.lg-seal-dot { width: 6px; height: 6px; border-radius: 999px; background: #4cb3ff; flex-shrink: 0; }

/* ------------------------------------------------------------
   Responsive de detalle.
   ------------------------------------------------------------ */
@media (max-width: 620px) {
  .lg-footer { flex-direction: column; align-items: flex-start; }
  .lg-footer-links { margin-left: 0; }
}
