/* ==========================================================================
   BITXEL 5.8.3 · Acceso formal
   Solo presentación (no toca formularios ni lógica). Paleta azul marino y gris de BITXEL,
   tipografía Public Sans, fondo claro, panel institucional con contenido y botón con el mismo estilo del sistema.
   Para volver al diseño anterior basta quitar el <link> de este archivo en app/ui.php.
   ========================================================================== */
@font-face{font-family:"PublicSans";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/public-sans-latin-wght-normal.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"PublicSans";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/public-sans-latin-ext-wght-normal.woff2) format("woff2-variations");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
html body.bx-auth.bx-auth-premium{
  --lf-navy:#095F57; --lf-blue:#0B7A70; --lf-blue-d:#095F57; --lf-ink:#1E293B; --lf-mut:#4F5D73; --lf-line:#CBD8E3; --lf-soft:#E6F3F1;
  font-family:"PlusJakarta","Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;
  color:var(--lf-ink)!important; background:#F3F8FB!important;
  background-image:none!important;
}
html:has(body.bx-auth-premium){background:#F3F8FB}
/* Sin fondo negro ni video a pantalla completa */
html body.bx-auth.bx-auth-premium .bx-auth-bg{background:transparent!important}
html body.bx-auth.bx-auth-premium .bx-auth-bg video,
html body.bx-auth.bx-auth-premium .bx-auth-bg-dim,
html body.bx-auth.bx-auth-premium .bx-auth-bg::after,
html body.bx-auth.bx-auth-premium .bx-auth-bg::before,
html body.bx-auth.bx-auth-premium .bx-auth-sunset{display:none!important}

/* Marco */
html body.bx-auth.bx-auth-premium .bx-auth-premium-shell{
  width:min(1020px,calc(100% - 40px))!important; min-height:620px!important; padding:0!important; gap:0!important;
  grid-template-columns:44% 56%!important; background:#fff!important; border:1px solid #D5DEE9!important; border-radius:16px!important;
  box-shadow:0 1px 2px rgba(15,39,68,.06),0 24px 60px rgba(15,39,68,.14)!important; overflow:hidden!important;
}

/* Panel institucional */
html body.bx-auth.bx-auth-premium .bx-auth-video-panel{
  display:flex!important; flex-direction:column!important; justify-content:space-between!important; min-height:0!important; border-radius:0!important;
  padding:34px 34px 28px!important; color:#fff!important;
  background:#0B7A70!important;
}
html body.bx-auth.bx-auth-premium .bx-auth-video-panel::before{
  content:"";position:absolute;inset:0;pointer-events:none;display:none}
html body.bx-auth.bx-auth-premium .bx-auth-video-panel::after{display:none!important}
html body.bx-auth.bx-auth-premium .bx-auth-video-panel>*{position:relative!important;z-index:1}
html body.bx-auth.bx-auth-premium .bx-auth-video-brand{position:static!important;display:flex!important;align-items:baseline!important;gap:10px!important;background:none!important;border:0!important;padding:0!important}
html body.bx-auth.bx-auth-premium .bx-auth-platform{font-weight:800!important;letter-spacing:.2em!important;font-size:14px!important;color:#fff!important}
html body.bx-auth.bx-auth-premium .bx-auth-video-brand small{color:#E6F4F2!important;opacity:1!important;font-size:11px!important;letter-spacing:.14em!important;text-transform:uppercase!important}
html body.bx-auth.bx-auth-premium .bx-auth-video-copy{position:static!important;max-width:100%!important}
html body.bx-auth.bx-auth-premium .bx-auth-video-copy>span{display:block!important;color:#B7C6DB!important;font-size:12px!important;letter-spacing:.16em!important;text-transform:uppercase!important;font-weight:700!important;margin-bottom:10px!important}
html body.bx-auth.bx-auth-premium .bx-auth-video-copy strong{color:#fff!important;font-size:clamp(1.5rem,2.4vw,2.1rem)!important;line-height:1.18!important;font-weight:700!important;letter-spacing:-.02em!important;text-transform:none!important}
html body.bx-auth.bx-auth-premium .bx-auth-points{list-style:none!important;margin:22px 0 0!important;padding:0!important;display:grid!important;gap:10px!important}
html body.bx-auth.bx-auth-premium .bx-auth-points li{position:relative!important;padding-left:26px!important;color:#DCE6F3!important;font-size:.95rem!important;line-height:1.4!important}
html body.bx-auth.bx-auth-premium .bx-auth-points li::before{content:"";position:absolute;left:0;top:.28em;width:14px;height:14px;border-radius:50%;background:rgba(255,255,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat}
html body.bx-auth.bx-auth-premium .bx-auth-seal{margin:0!important;color:#9FB3CC!important;font-size:12px!important;letter-spacing:.04em!important;border-top:1px solid rgba(255,255,255,.14)!important;padding-top:14px!important}

/* Tarjeta de acceso */
html body.bx-auth.bx-auth-premium .bx-auth-premium-card{
  background:#fff!important; border:0!important; border-radius:0!important; box-shadow:none!important;
  padding:40px clamp(28px,5vw,56px) 26px!important; display:flex!important; flex-direction:column!important; justify-content:center!important;
}
html body.bx-auth.bx-auth-premium .bx-auth-premium-inner{padding:0!important;max-width:400px!important;width:100%!important;margin:0 auto!important}
html body.bx-auth.bx-auth-premium .bx-auth-logo-image{max-height:72px!important;max-width:210px!important;width:auto!important;object-fit:contain!important;mix-blend-mode:multiply}
html body.bx-auth.bx-auth-premium .bx-auth-company-name{color:var(--lf-mut)!important;letter-spacing:.16em!important;font-weight:700!important}
html body.bx-auth.bx-auth-premium .bx-auth-company-rule small{color:#64748B!important;letter-spacing:.14em!important;font-weight:700!important}
html body.bx-auth.bx-auth-premium .bx-auth-company-rule span{background:var(--lf-line)!important;opacity:1!important}
html body.bx-auth.bx-auth-premium .bx-auth-premium-head h1{font-size:clamp(1.7rem,3vw,2.1rem)!important;font-weight:800!important;letter-spacing:-.025em!important;color:var(--lf-navy)!important;text-transform:none!important;margin:14px 0 6px!important}
html body.bx-auth.bx-auth-premium .bx-auth-premium-head p{color:var(--lf-mut)!important;font-size:.98rem!important}

/* Acceso con Google u otros */
html body.bx-auth.bx-auth-premium .bx-social-btn{min-height:48px!important;border-radius:8px!important;background:#fff!important;border:1px solid var(--lf-line)!important;color:var(--lf-ink)!important;font-weight:600!important;box-shadow:0 1px 1px rgba(15,39,68,.04)!important;transform:none!important}
html body.bx-auth.bx-auth-premium .bx-social-btn:hover{background:var(--lf-soft)!important;border-color:#9FB3CC!important}
html body.bx-auth.bx-auth-premium .bx-social-btn:focus-visible{outline:3px solid rgba(31,78,140,.35)!important;outline-offset:2px}
html body.bx-auth.bx-auth-premium .bx-auth-social{margin:0!important;gap:8px!important}
html body.bx-auth.bx-auth-premium .bx-auth-premium-form .bx-auth-social{margin:0 0 4px!important}
html body.bx-auth.bx-auth-premium .bx-auth-social::after,
html body.bx-auth.bx-auth-premium .bx-auth-social-premium::after{content:"o ingrese con su correo"!important;display:block!important;position:static!important;margin:16px 0 2px!important;padding:0!important;height:auto!important;background:none!important;text-align:center!important;color:#64748B!important;font-size:.82rem!important;letter-spacing:.02em!important;text-transform:none!important}

/* Campos */
html body.bx-auth.bx-auth-premium .bx-auth-form label{font-size:.86rem!important;font-weight:700!important;color:#1E293B!important;margin:14px 0 6px!important}
html body.bx-auth.bx-auth-premium .bx-auth-form input[type=email],
html body.bx-auth.bx-auth-premium .bx-auth-form input[type=password],
html body.bx-auth.bx-auth-premium .bx-auth-form input[type=text]{
  height:48px!important;min-height:48px!important;border-radius:8px!important;border:1px solid var(--lf-line)!important;background:#fff!important;color:var(--lf-ink)!important;font-size:1rem!important;box-shadow:none!important;
}
html body.bx-auth.bx-auth-premium .bx-auth-form input:focus{border-color:var(--lf-blue)!important;box-shadow:0 0 0 3px rgba(31,78,140,.2)!important;outline:0!important}
/* El autocompletado del navegador no debe pintar el campo de azul/amarillo */
html body.bx-auth.bx-auth-premium .bx-auth-form input:-webkit-autofill,
html body.bx-auth.bx-auth-premium .bx-auth-form input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 40px #fff inset!important;box-shadow:0 0 0 40px #fff inset!important;-webkit-text-fill-color:var(--lf-ink)!important;caret-color:var(--lf-ink)}
html body.bx-auth.bx-auth-premium .bx-password-toggle{color:var(--lf-blue)!important;font-weight:700!important;border-radius:6px!important}
html body.bx-auth.bx-auth-premium .bx-password-toggle:hover{background:var(--lf-soft)!important}
html body.bx-auth.bx-auth-premium .bx-auth-inline-links{margin:12px 0 4px!important}
html body.bx-auth.bx-auth-premium .bx-auth-inline-links a{color:var(--lf-blue)!important;font-weight:600!important;font-size:.88rem!important;text-decoration:none!important}
html body.bx-auth.bx-auth-premium .bx-auth-inline-links a:hover{text-decoration:underline!important}

/* Botón principal: mismo estilo que el resto del sistema */
html body.bx-auth.bx-auth-premium .bx-auth-form .btn.primary.wide{
  min-height:48px!important;margin-top:10px!important;border-radius:12px!important;border:1px solid #0B7A70!important;
  background:#0B7A70!important;color:#fff!important;font-weight:700!important;font-size:1rem!important;letter-spacing:0!important;
  box-shadow:none!important;transform:none!important;
}
html body.bx-auth.bx-auth-premium .bx-auth-form .btn.primary.wide::before{display:none!important}
html body.bx-auth.bx-auth-premium .bx-auth-form .btn.primary.wide:hover{background:#095F57!important}
html body.bx-auth.bx-auth-premium .bx-auth-form .btn.primary.wide:focus-visible{outline:3px solid rgba(11,122,112,.5)!important;outline-offset:2px}

html body.bx-auth.bx-auth-premium .bx-auth-powered{margin-top:22px!important;color:#64748B!important}
html body.bx-auth.bx-auth-premium .bx-auth-powered strong{color:var(--lf-navy)!important;letter-spacing:.14em!important}
html body.bx-auth.bx-auth-premium .bx-auth-support small,
html body.bx-auth.bx-auth-premium .bx-auth-support div{color:var(--lf-mut)!important}

/* Teléfono y tableta */
@media(max-width:900px){
  html body.bx-auth.bx-auth-premium .bx-auth-premium-shell{grid-template-columns:1fr!important;width:min(560px,calc(100% - 24px))!important;min-height:0!important;margin:16px auto!important}
  html body.bx-auth.bx-auth-premium .bx-auth-video-panel{display:flex!important;padding:22px 24px!important;min-height:0!important}
  html body.bx-auth.bx-auth-premium .bx-auth-video-copy strong,
  html body.bx-auth.bx-auth-premium .bx-auth-points,
  html body.bx-auth.bx-auth-premium .bx-auth-seal,
  html body.bx-auth.bx-auth-premium .bx-auth-video-copy>span{display:none!important}
  html body.bx-auth.bx-auth-premium .bx-auth-premium-card{padding:28px 22px 22px!important}
}
@media(max-width:767px){
  html body.bx-auth.bx-auth-premium .bx-auth-video-panel{display:none!important}
  html body.bx-auth.bx-auth-premium .bx-auth-premium-shell{width:100%!important;margin:0!important;border-radius:0!important;border-left:0!important;border-right:0!important;min-height:100dvh!important}
}
@media(prefers-reduced-motion:reduce){html body.bx-auth.bx-auth-premium *{transition:none!important;animation:none!important}}

/* El separador «O» del diseño anterior solo tenía sentido con botón de Google; ahora lo dibuja el propio bloque social. */
html body.bx-auth.bx-auth-premium .bx-auth-premium-form .bx-auth-form::before{display:none!important;content:none!important}

/* 5.8.3 · Centrado vertical, sin franjas y autocompletado del navegador legible */
html:has(body.bx-auth-premium){background:#F3F8FB!important;min-height:100%}
html body.bx-auth.bx-auth-premium{min-height:100vh!important;min-height:100dvh!important;margin:0!important;padding:24px 0!important;display:grid!important;place-items:center!important;background:transparent!important;background-image:none!important}
html body.bx-auth.bx-auth-premium .bx-auth-premium-shell{margin:0 auto!important}
html body.bx-auth.bx-auth-premium input:-webkit-autofill,
html body.bx-auth.bx-auth-premium input:-webkit-autofill:hover,
html body.bx-auth.bx-auth-premium input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 40px #fff inset!important;box-shadow:0 0 0 40px #fff inset!important;-webkit-text-fill-color:#0F172A!important;caret-color:#0F172A;transition:background-color 9999s ease-out 0s}
@media (max-width:760px){html body.bx-auth.bx-auth-premium{padding:0!important;place-items:stretch!important}html body.bx-auth.bx-auth-premium .bx-auth-premium-shell{width:100%!important;min-height:100dvh!important;border-radius:0!important;border:0!important;box-shadow:none!important}}

/* 5.8.4 · Sin brillo en los textos del panel; contraste AA en las líneas pequeñas */
html body.bx-auth.bx-auth-premium .bx-auth-video-panel *{text-shadow:none!important}
html body.bx-auth.bx-auth-premium .bx-auth-video-panel :is(small,span,p,li){color:#fff!important}
html body.bx-auth.bx-auth-premium .bx-auth-video-panel :is(small,.bx-auth-video-brand span:last-child){opacity:.88}

/* ── Móvil: encabezado de marca con onda (BITXELT arriba, logo de la institución al centro) ── */
@media (max-width:700px){
  html body.bx-auth.bx-auth-premium{background:#F5F8FA!important}
  html body.bx-auth.bx-auth-premium .bx-auth-premium-shell{width:100%!important;margin:0!important;padding:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;min-height:100vh}
  html body.bx-auth.bx-auth-premium .bx-auth-video-panel{display:none!important}
  html body.bx-auth.bx-auth-premium .bx-auth-premium-card{border-radius:0!important;box-shadow:none!important;border:0!important;background:transparent!important;padding:0 !important;min-height:100vh}
  html body.bx-auth.bx-auth-premium .bx-auth-premium-inner{width:100%;padding:0 20px 28px!important}
  html body.bx-auth.bx-auth-premium .bx-auth-premium-inner::before{content:"";display:block;height:132px;margin:0 -20px;background:linear-gradient(165deg,#062D35 0%,#087F72 100%);border-radius:0 0 50% 50%/0 0 40px 40px}
  html body.bx-auth.bx-auth-premium .bx-auth-premium-head{position:relative;margin-top:-64px!important;text-align:center}
  html body.bx-auth.bx-auth-premium .bx-auth-company-logo{margin:0 auto 10px!important;min-width:132px;height:84px!important;padding:10px 18px;border-radius:20px;background:#fff;border:1px solid #E2E8F0;box-shadow:0 10px 28px -14px rgba(6,45,53,.45);display:flex;align-items:center;justify-content:center}
  html body.bx-auth.bx-auth-premium .bx-auth-company-logo img{max-height:62px;width:auto;max-width:200px;object-fit:contain}
  html body.bx-auth.bx-auth-premium .bx-auth-premium-form{background:#fff;border:1px solid #E2E8F0;border-radius:20px;padding:18px 16px 20px;box-shadow:0 1px 2px rgba(15,35,52,.04)}
}
@media (max-width:700px){
  html body.bx-auth.bx-auth-premium .bx-auth-company-logo{width:fit-content!important;max-width:100%}
  html body.bx-auth.bx-auth-premium .bx-auth-premium-head{margin-bottom:14px!important}
  html body.bx-auth.bx-auth-premium .bx-auth-premium-form{padding-top:6px}
  html body.bx-auth.bx-auth-premium .bx-auth-premium-form>*:first-child{margin-top:0!important}
}

/* ── 5.11 · Franja inferior animada: pulso cardíaco ── */
.bx-auth-ecg{position:fixed;left:0;right:0;bottom:0;height:96px;pointer-events:none;z-index:0;overflow:hidden;
  background:linear-gradient(to top,color-mix(in srgb,var(--brand,#087F72) 14%,transparent),transparent)}
.bx-auth-ecg svg{display:block;width:100%;height:100%}
.bx-auth-ecg path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.bx-auth-ecg .ecg-base{stroke:var(--brand,#087F72);stroke-width:2;opacity:.2}
.bx-auth-ecg .ecg-live{stroke:var(--accent,#16A6A0);stroke-width:3.2;stroke-dasharray:130 870;stroke-dashoffset:130;
  filter:drop-shadow(0 0 5px var(--accent,#16A6A0));animation:bx-ecg 3.4s linear infinite}
@keyframes bx-ecg{to{stroke-dashoffset:-870}}
@media (prefers-reduced-motion:reduce){.bx-auth-ecg .ecg-live{animation:none;stroke-dasharray:none;opacity:.5}}
@media (max-width:640px){.bx-auth-ecg{height:72px}}
