/* Login del panel de Ocho Puntas — hero nocturno con la constelación de las ocho puntas
   (canvas) y formulario en el lenguaje SpaceX: blanco, negro, mayúsculas, 1px. */
.ol-body { margin: 0; background: #fff; color: var(--fg); }
.ol { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }

/* ---------- hero ---------- */
.ol-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 52px); background: #0a0a0a; color: #fafafa; }
.ol-cielo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.ol-marca { display: inline-flex; align-items: center; gap: 12px; color: #fafafa; text-decoration: none; align-self: flex-start;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.ol-marca img { width: 34px; height: 34px; object-fit: contain; }
.ol-hero__texto { margin-top: auto; display: grid; gap: 18px; max-width: 40rem; }
.ol-etiqueta { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #a3a3a3; }
.ol-etiqueta--oscura { color: var(--muted); }
.ol-hero h1 { margin: 0; font-size: clamp(40px, 4.6vw, 72px); line-height: .95; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
.ol-hero h1 span { display: block; }
.ol-hero__lead { margin: 0; max-width: 30rem; color: #c7c7c7; font-size: 15px; line-height: 1.6; }
.ol-reloj { margin: 40px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #8a8a8a; min-height: 1.5em; }

/* ---------- formulario ---------- */
.ol-main { display: grid; place-items: center; padding: clamp(28px, 5vw, 64px) max(20px, env(safe-area-inset-right)); background: #fff; }
.ol-card { width: min(100%, 26rem); display: grid; gap: 10px; }
.ol-card h2 { margin: 2px 0 0; font-size: clamp(28px, 3vw, 36px); font-weight: 800; letter-spacing: .01em; text-transform: uppercase; line-height: 1.05; }
.ol-card__lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ol-form { display: grid; gap: 16px; }
.ol-campo { display: grid; gap: 7px; }
.ol-campo > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }
.ol-campo input { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 13px 14px; border: 1px solid #d4d4d4; border-radius: 0;
  background: #fff; color: var(--fg); transition: border-color .2s, box-shadow .2s; }
.ol-campo input::placeholder { color: #a3a3a3; }
.ol-campo input:hover { border-color: #a3a3a3; }
.ol-campo input:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.ol-pw { position: relative; display: block; }
.ol-pw input { padding-right: 48px; }
.ol-pw__ver { position: absolute; top: 0; right: 0; width: 46px; height: 100%; display: grid; place-items: center; border: 0; background: none; color: #737373; cursor: pointer; }
.ol-pw__ver:hover, .ol-pw__ver[aria-pressed="true"] { color: var(--fg); }
.ol-pw__ver:focus-visible { outline: 2px solid var(--fg); outline-offset: -4px; }
.ol-pw__ver svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ol-pw__tache { opacity: 0; transition: opacity .15s; }
.ol-pw__ver[aria-pressed="true"] .ol-pw__tache { opacity: 1; }
.ol-entrar { margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px; border: 1px solid #0a0a0a;
  background: #0a0a0a; color: #fff; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.ol-entrar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.ol-entrar:hover { background: #262626; }
.ol-entrar:hover svg { transform: translateX(4px); }
.ol-entrar:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 3px; }
.ol-entrar[disabled] { cursor: progress; background: #404040; border-color: #404040; }
.ol-pie { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ol-pie__seguro { display: inline-flex; align-items: center; gap: 7px; color: #737373; }
.ol-pie__seguro svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.ol-pie a { color: var(--fg); text-decoration: none; }
.ol-pie a:hover { text-decoration: underline; }
.ol .op-alerta { border-radius: 0; margin-bottom: 4px; }

/* ---------- entrada ---------- */
@keyframes ol-sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ol-marca { animation: ol-sube .7s .05s both; }
.ol-hero__texto .ol-etiqueta { animation: ol-sube .7s .25s both; }
.ol-hero h1 span:first-child { animation: ol-sube .8s .35s both; }
.ol-hero h1 span:last-child { animation: ol-sube .8s .48s both; }
.ol-hero__lead { animation: ol-sube .7s .62s both; }
.ol-reloj { animation: ol-sube .7s .8s both; }
.ol-card { animation: ol-sube .8s .3s both; }

/* ---------- móvil: hero arriba, formulario abajo ---------- */
@media (max-width: 860px) {
  .ol { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .ol-hero { min-height: 50svh; padding: max(22px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 26px max(20px, env(safe-area-inset-left)); }
  .ol-hero__texto { gap: 12px; }
  .ol-hero h1 { font-size: clamp(36px, 10.5vw, 56px); }
  .ol-hero__lead { font-size: 14px; }
  .ol-reloj { margin-top: 18px; }
  .ol-main { place-items: start center; padding-block: 30px max(30px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .ol-marca, .ol-hero__texto .ol-etiqueta, .ol-hero h1 span, .ol-hero__lead, .ol-reloj, .ol-card { animation: none; }
  .ol-entrar svg, .ol-campo input { transition: none; }
}
