/* lgrust.ru account page: moxen Acceso + Clave on the site palette (site.css tokens), plus the
   anti-bot row, consent, cabinet and chat. */
.ac-escena {
  --ac-fondo: var(--bg);
  --ac-texto: var(--ink);
  --ac-suave: var(--muted);
  --ac-tenue: var(--faint);
  --ac-hoja: var(--surface);
  --ac-campo: var(--subtle);
  --ac-campo-foco: #FFFFFF;
  --ac-linea: var(--border);
  --ac-borde: var(--border);
  --ac-borde-fuerte: var(--border-strong);
  --ac-anillo: rgba(29, 95, 208, .14);
  --ac-seleccion: rgba(29, 95, 208, .18);
  --ac-luz: rgba(255, 255, 255, .9);
  --ac-filo: rgba(15, 27, 45, .14);
  --ac-sombra: rgba(15, 27, 45, .10);
  --ac-boton: var(--accent);
  --ac-boton-tinta: #FFFFFF;
  --ac-ok: var(--green);
  --ac-error: var(--red);
  --ac-curva: cubic-bezier(.22, 1, .36, 1);
  --ac-rebote: cubic-bezier(.34, 1.56, .64, 1);
  --ac-radio: 18px;

  --cl-texto: var(--ink);
  --cl-suave: var(--muted);
  --cl-tenue: var(--faint);
  --cl-bien: var(--accent);
  --cl-mal: var(--red);
  --cl-casilla-a: #FFFFFF;
  --cl-casilla-b: var(--subtle);
  --cl-borde: var(--border);
  --cl-borde-lleno: var(--border-strong);
  --cl-filo: #FFFFFF;
  --cl-sombra: 0 1px 2px rgba(15, 27, 45, .06), 0 6px 16px rgba(15, 27, 45, .06);
  --cl-halo: rgba(15, 27, 45, .06);
  --cl-barrido: rgba(29, 95, 208, .08);
  --cl-ancho: 54px;
  --cl-alto: 64px;
  --cl-hueco: 8px;
  --cl-radio: 14px;
  --cl-letra: 1.75rem;
  --cl-curva: cubic-bezier(.22, 1, .36, 1);
  --cl-junta: cubic-bezier(.7, 0, .2, 1);
  --cl-rebote: cubic-bezier(.34, 1.56, .64, 1);

  color: var(--ac-texto);
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}

/* the panel: navy, the brand, pins drawn in pale blue */
.ac-panel {
  --ac-panel-a: #1A2C47;
  --ac-panel-b: #0F1B2D;
  --ac-linea: rgba(255, 255, 255, .08);
  --ac-luz: rgba(255, 255, 255, .10);
  --ac-suave: rgba(234, 241, 252, .72);
  --ac-pin: 234, 241, 252;
  --ac-pin-error: 255, 110, 110;
  --ac-pin-luz: lighter;
  --ac-pin-linea: .43;
  --ac-pin-velo: .56;
  color: #F5F8FD;
  margin: 16px 0 16px 0;
}
.ac-marca img { width: 26px; height: 22px; filter: brightness(0) invert(1); }

/* one field per row; the form texts sit tighter than the demo */
.ac-cabeza p { line-height: 1.5; }

/* consent checkbox and the anti-bot row share the look of «Recordarme» */
.lg-acepta { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.45; color: var(--ac-suave); margin: 4px 0 14px; cursor: pointer; }
.lg-acepta input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.lg-acepta a { color: var(--accent); }
.ac-campo.is-error .lg-acepta { color: var(--red); }

.lg-robot { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: .86rem; color: var(--ac-suave); }
.lg-robot svg { width: 22px; height: 22px; flex: none; }
.lg-robot .lg-dot { fill: var(--border-strong); transition: fill .25s; }
.lg-robot .lg-dot.is-on { fill: var(--accent); }
.lg-robot .lg-tick { stroke: var(--green); stroke-width: 2.4; fill: none; opacity: 0; transition: opacity .3s; }
.lg-robot.is-done .lg-dot { fill: var(--green); }
.lg-robot.is-done .lg-tick { opacity: 1; }

/* the code view: clave inside the card */
.lg-codigo .cl-grupo { margin: 6px auto 14px; }
.lg-codigo .cl-estado { min-height: 1.4em; text-align: center; font-size: .9rem; margin: 0 0 6px; }
.lg-codigo .cl-otro { display: block; margin: 0 auto; font-size: .9rem; }

/* the cabinet (logged in) */
.lg-kab { max-width: 880px; margin: 0 auto; padding: 24px 16px 48px; }
.lg-kab-h { margin: 0 0 6px; font-size: 1.7rem; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.lg-kab .lg-kab-lead { margin: 0 0 22px; color: var(--muted); }
.lg-kab-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.lg-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.lg-card h2 { margin: 0 0 12px; font-size: 1.05rem; }
.lg-card p { margin: 0 0 10px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.lg-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.lg-row:first-of-type { border-top: 0; }
.lg-row span:first-child { color: var(--muted); }
.lg-row span:last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.lg-soon { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--subtle); color: var(--muted); }

/* the chat feed */
.lg-chat { display: flex; flex-direction: column; gap: 2px; max-height: 460px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.lg-msg { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 7px 0; border-top: 1px solid var(--subtle); font-size: .92rem; line-height: 1.45; }
.lg-msg:first-child { border-top: 0; }
.lg-msg time { color: var(--faint); font-family: var(--mono); font-size: .8rem; padding-top: 2px; }
.lg-msg b { font-weight: 600; margin-right: 6px; }
.lg-msg span { overflow-wrap: anywhere; }
.lg-chat-empty { color: var(--muted); font-size: .92rem; padding: 10px 0; }
.lg-chat-meta { margin-top: 10px; font-size: .8rem; color: var(--faint); }
.lg-chat-lock { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 760px) {
  .ac-escena { padding: 0 0 24px; }
  .ac-panel { margin: 12px 12px 0; }
  .ac-cifrada { display: none; }
  .lg-kab-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-escena { --cl-ancho: 44px; --cl-alto: 54px; --cl-hueco: 6px; --cl-radio: 12px; --cl-letra: 1.5rem; }
}
