/* ARCHIVO: VPS → /opt/fema-remote/server/public/cuenta-login.css */
/* Ingreso de FEMA Remote (acceso-remoto.femanext.com/cuenta/ingresar): misma línea que todos los ingresos FEMA. */
/* =========================================================================
   FEMA CMS — Pantalla de ingreso
   Marca arriba, animaciones del CMS al costado y el formulario como
   protagonista (marco degradé azul → rojo). Todo con prefijo fl- para no
   chocar con admin.css.
   ========================================================================= */

body.fl-body {
    background: #fff !important; min-height: 100vh; display: block !important; padding: 0 !important;
    color: #0a0e27 !important; font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
.flog {
    --fl-azul: #1e169c; --fl-azul-2: #3b2bd9; --fl-rojo: #ff203c; --fl-violeta: #6b1ea7;
    --fl-tinta: #0a0e27; --fl-texto: #5b6170; --fl-suave: #8a8e9c; --fl-tenue: #b6bac7;
    --fl-linea: #ececef; --fl-linea-2: #e4e6ee; --fl-fondo: #f7f8fa;
    --fl-azul-fondo: #fbfaff; --fl-azul-suave: #d9d7f0; --fl-rojo-fondo: #fff5f6; --fl-rojo-suave: #ffd6dc;
    --fl-ok: #166534; --fl-ok-fondo: #dcfce7; --fl-wa: #128c4a;
    --fl-degrade: linear-gradient(90deg, #1e169c 0%, #ff203c 100%);
    --fl-degrade-titulo: linear-gradient(95deg, #1e169c 0%, #1e169c 42%, #ff203c 100%);
    min-height: 100vh; display: flex; flex-direction: column; background: #fff;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--fl-tinta); line-height: 1.35;
}
.flog *, .flog *::before, .flog *::after { box-sizing: border-box; }
.flog a { color: var(--fl-azul); text-decoration: none; font-weight: 600; }
.flog a:hover { color: var(--fl-rojo); }
.fl-ico { width: 20px; height: 20px; flex: none; }

/* ---------- Franja de la marca ---------- */
.fl-cab { flex: none; display: flex; justify-content: center; align-items: center; padding: 28px 24px; background: #fff; }
.fl-marca { display: flex; align-items: center; gap: 20px; }
.fl-marca > span:last-child { font-size: 28px; font-weight: 800; letter-spacing: .22em; color: var(--fl-rojo); border-left: 2px solid var(--fl-linea-2); padding-left: 20px; line-height: 1.7; }
.fl-brillo { position: relative; display: inline-block; line-height: 0; }
.fl-brillo img { display: block; height: 72px; width: auto; }
.fl-brillo::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 58%);
    background-size: 300% 100%; background-repeat: no-repeat;
    -webkit-mask-image: url('logo-color.png'); mask-image: url('logo-color.png');
    -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: flBrillo 3s linear infinite;
}
@keyframes flBrillo { 0% { background-position: 130% 0; } 70%, 100% { background-position: -30% 0; } }

/* ---------- Cuerpo: fondo claro ---------- */
.fl-cuerpo {
    flex: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); align-items: center; gap: 40px;
    padding: 48px max(40px, calc((100vw - 1320px) / 2));
    background: linear-gradient(100deg, #e6ecff 0%, #efeafc 50%, #ffe5eb 100%);
}

/* ---------- Formulario ---------- */
.fl-form {
    position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px;
    padding: 46px 52px 26px; border-radius: 30px; border: 9px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #1e169c 0%, #5a1a9e 45%, #ff203c 100%) border-box;
    box-shadow: 0 50px 90px -45px rgba(30,22,156,.55);
    animation: flPop .8s cubic-bezier(.2,.8,.2,1) both;
}
.fl-form h1 {
    font-size: 44px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0;
    background: var(--fl-degrade-titulo); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: left !important;
}
.fl-bajada { font-size: 18px; color: var(--fl-suave); margin: 8px 0 22px; }
.fl-form .alert { font-size: 16px; border-radius: 11px; margin-bottom: 16px; }
.flog form.fl-caja { background: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.fl-info { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 11px; border: 1px solid var(--fl-azul-suave); background: var(--fl-azul-fondo); color: var(--fl-azul); font-size: 16px; font-weight: 500; margin-bottom: 18px; line-height: 1.45; }
.fl-info .fl-ico { margin-top: 1px; }
.fl-campo { margin-bottom: 18px; }
.flog .fl-campo label { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; font-weight: 700; color: var(--fl-tinta) !important; margin: 0 0 7px; text-align: left !important; }
.flog .fl-campo label a { font-size: 14px; }
.flog .fl-campo input {
    width: 100%; min-height: 50px; padding: 0 14px; margin: 0;
    border: 1.5px solid var(--fl-linea-2) !important; border-radius: 11px !important; background: #fff !important;
    color: var(--fl-tinta) !important; font-size: 16px !important; font-weight: 500; font-family: inherit !important; text-align: left !important;
    box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.flog .fl-campo input:focus { outline: none; border-color: var(--fl-azul) !important; box-shadow: 0 0 0 3px rgba(30,22,156,.12) !important; }
.flog .fl-campo input::placeholder { color: var(--fl-tenue); text-align: left; }
.fl-clave { position: relative; }
.flog .fl-clave input { padding-right: 50px; }
.flog .fl-ver { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: var(--fl-suave); border-radius: 9px; display: grid; place-items: center; cursor: pointer; padding: 0; margin: 0; box-shadow: none; }
.flog .fl-ver:hover { background: var(--fl-fondo); color: var(--fl-tinta); }
.flog .fl-ver .fl-ico { width: 18px; height: 18px; }
.flog .fl-boton {
    position: relative; overflow: hidden; display: block; width: 100%; min-height: 56px; margin: 6px 0 0; padding: 0 20px;
    border: 0; border-radius: 11px; background: var(--fl-azul); color: #fff; cursor: pointer;
    font-family: inherit; font-size: 18px; font-weight: 700; box-shadow: none; transition: background .2s, box-shadow .2s;
}
.flog .fl-boton::before { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); }
.flog .fl-boton:hover { background: var(--fl-rojo); box-shadow: 0 14px 28px -16px rgba(255,32,60,.8); }
.flog .fl-boton:hover::before { animation: flBarrido .8s ease; }
@keyframes flBarrido { from { left: -100%; } to { left: 200%; } }
.fl-pie { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--fl-linea); font-size: 14px; color: var(--fl-suave); text-align: center; }

/* Pedido de desbloqueo (viene armado para fondo oscuro: acá va sobre blanco) */
.flog .fema-desb { background: none; padding: 0; border: 0; box-shadow: none; }
.flog .fema-desb p { color: var(--fl-texto) !important; }
.flog .fema-desb label { color: var(--fl-tinta) !important; display: block; font-weight: 700; margin-bottom: 7px; text-align: left !important; }
.flog .fema-desb input[type=email], .flog .fema-desb input[type=text] { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--fl-linea-2); border-radius: 11px; font: inherit; margin-bottom: 14px; }
.flog .fema-desb button { width: 100%; min-height: 52px; border: 0; border-radius: 11px; background: var(--fl-azul); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.flog .fema-desb button:hover { background: var(--fl-rojo); }

/* ---------- Animaciones ---------- */
.fl-visual { position: relative; height: 480px; }
.fl-escena {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 22px 0;
    opacity: 0; visibility: hidden; transform: translateY(24px) scale(.985); filter: blur(8px);
    transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1), filter .7s ease, visibility 0s .8s;
}
.fl-escena.activa { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity .7s ease .15s, transform .8s cubic-bezier(.2,.8,.2,1) .15s, filter .7s ease .15s, visibility 0s; }
.fl-escena.sale { visibility: visible; opacity: 0; transform: translateY(-24px) scale(.985); filter: blur(8px); transition: opacity .6s ease, transform .7s ease, filter .6s ease; }
.fl-titulo { align-self: flex-start; max-width: 100%; padding: 16px 20px 18px; border-radius: 16px; background: rgba(255,255,255,.94); border: 1px solid rgba(30,22,156,.06); box-shadow: 0 20px 40px -28px rgba(30,22,156,.45); }
.fl-titulo small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .18em; color: var(--fl-rojo); margin-bottom: 6px; }
.fl-titulo h2 { font-size: clamp(20px, 1.75vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; color: var(--fl-tinta); margin: 0; text-align: left !important; }
.fl-titulo h2 em { font-style: normal; background: var(--fl-degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fl-escena.activa .fl-titulo > * { animation: flSube .7s cubic-bezier(.2,.8,.2,1) both; }
.fl-escena.activa .fl-titulo h2 { animation-delay: .25s; }
@keyframes flSube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes flPop { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 100% { opacity: 1; transform: none; } }


/* ---------- Escenas propias de FEMA Remote ---------- */
.r-pcs, .r-pant, .r-barra, .r-codigo, .r-ok { box-shadow: 0 24px 46px -28px rgba(30,22,156,.45); }

/* 1 · Tus computadoras, a la vista */
.r-pcs { background: #fff; border-radius: 16px; padding: 8px 16px; margin: 0; }
.r-pcs li { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--fl-linea); opacity: 0; }
.r-pcs li:last-child { border-bottom: 0; }
.r-pcs .r-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--fl-azul-fondo); color: var(--fl-azul); display: grid; place-items: center; }
.r-pcs b { display: block; font-size: 14.5px; }
.r-pcs small { font-size: 12.5px; color: var(--fl-suave); font-weight: 600; }
.r-pcs .r-est { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; color: var(--fl-suave); background: var(--fl-fondo); }
.r-pcs .r-est i { width: 8px; height: 8px; border-radius: 50%; background: #d6d8e4; }
.fl-escena.activa .r-pcs li { animation: zEntra .6s cubic-bezier(.2,.9,.25,1.1) both; animation-delay: calc(.4s + var(--i) * .5s); }
.fl-escena.activa .r-pcs li.r-on .r-est { animation: zEstado .4s ease forwards; animation-delay: calc(1.2s + var(--i) * .5s); }
.fl-escena.activa .r-pcs li.r-on .r-est i { animation: zVerde .4s ease forwards; animation-delay: calc(1.2s + var(--i) * .5s); }
.r-conectar { margin-top: 12px; align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 11px; background: var(--fl-degrade); color: #fff; font-size: 14px; font-weight: 700; opacity: 0; box-shadow: 0 18px 36px -20px rgba(255,32,60,.7); }
.fl-escena.activa .r-conectar { animation: flPop .6s cubic-bezier(.2,.8,.2,1) 3s both; }
@keyframes zEntra { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes zVerde { to { background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.18); } }
@keyframes zEstado { to { color: var(--fl-ok); background: var(--fl-ok-fondo); } }

/* 2 · Conectado: tu escritorio en otra pantalla */
.r-barra { display: flex; align-items: center; gap: 10px; background: var(--fl-tinta); color: #fff; border-radius: 14px 14px 0 0; padding: 11px 16px; font-size: 13px; font-weight: 700; }
.r-barra .r-vivo { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
.r-barra em { margin-left: auto; font-style: normal; font-weight: 600; color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; }
.r-pant { position: relative; height: 250px; border-radius: 0 0 14px 14px; overflow: hidden; background: linear-gradient(160deg, #1f5aa6, #173f78); }
.r-ven { position: absolute; left: 9%; top: 12%; width: 58%; height: 62%; background: #f4f5f7; border-radius: 8px; box-shadow: 0 14px 28px rgba(0,0,0,.3); opacity: 0; }
.r-ven::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22px; border-radius: 8px 8px 0 0; background: #e3e6ee; }
.r-ven span { position: absolute; left: 8%; height: 9px; border-radius: 5px; background: #dfe2ec; }
.r-ven span:nth-child(1) { top: 36%; width: 70%; } .r-ven span:nth-child(2) { top: 52%; width: 54%; } .r-ven span:nth-child(3) { top: 68%; width: 62%; }
.r-ven2 { position: absolute; right: 8%; bottom: 10%; width: 34%; height: 40%; background: #fff; border-radius: 8px; box-shadow: 0 14px 28px rgba(0,0,0,.3); opacity: 0; display: grid; place-items: center; }
.r-ven2 b { font-size: 12px; font-weight: 800; color: var(--fl-azul); }
.r-cursor { position: absolute; left: 70%; top: 70%; width: 0; height: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; transform: rotate(-30deg); filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); opacity: 0; }
.fl-escena.activa .r-ven { animation: flPop .6s cubic-bezier(.2,.8,.2,1) .7s both; }
.fl-escena.activa .r-ven2 { animation: flPop .6s cubic-bezier(.2,.8,.2,1) 2.6s both; }
.fl-escena.activa .r-cursor { animation: rCursor 5s ease-in-out .5s both; }
@keyframes rCursor { 0% { opacity: 0; left: 70%; top: 70%; } 10% { opacity: 1; } 35% { left: 40%; top: 45%; } 55% { left: 40%; top: 45%; } 80%, 100% { opacity: 1; left: 76%; top: 72%; } }
.r-ok { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--fl-ok); background: #fff; border-radius: 999px; padding: 8px 14px; opacity: 0; }
.r-ok .fl-ico { width: 16px; height: 16px; }
.fl-escena.activa .r-ok { animation: flPop .6s cubic-bezier(.2,.8,.2,1) 3.6s both; }

/* 3 · Solo entrás vos: doble verificación */
.r-codigo { background: #fff; border-radius: 16px; padding: 20px 20px 22px; }
.r-codigo small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--fl-suave); margin-bottom: 12px; }
.r-dig { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.r-dig span { position: relative; height: 56px; border-radius: 11px; border: 1.5px solid var(--fl-linea-2); display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--fl-azul); }
.r-dig span b { opacity: 0; }
.fl-escena.activa .r-dig span { animation: rCaja .3s ease forwards; animation-delay: calc(.8s + var(--i) * .35s); }
.fl-escena.activa .r-dig span b { animation: flPop .3s ease forwards; animation-delay: calc(.8s + var(--i) * .35s); }
@keyframes rCaja { to { border-color: var(--fl-azul); background: var(--fl-azul-fondo); } }
.r-cel { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13.5px; color: var(--fl-texto); font-weight: 600; }
.r-cel i { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--fl-degrade); color: #fff; display: grid; place-items: center; font-style: normal; }
.r-cel i .fl-ico { width: 18px; height: 18px; }
.r-acceso { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--fl-ok); background: #fff; border-radius: 999px; padding: 8px 14px; opacity: 0; box-shadow: 0 18px 36px -24px rgba(30,22,156,.45); }
.r-acceso .fl-ico { width: 16px; height: 16px; }
.fl-escena.activa .r-acceso { animation: flPop .6s cubic-bezier(.2,.8,.2,1) 3.2s both; }

/* Mensajes del formulario sobre fondo blanco */
.flog .msg { min-height: 22px; margin: 14px 0 0; font-size: 15px; color: var(--fl-azul); }
.flog .msg.err { color: var(--fl-rojo); }
.flog .msg:empty { display: none; }
.flog .fl-campo label .muted { font-weight: 500; color: var(--fl-suave); font-size: 14px; }
.flog .fl-boton:disabled { opacity: .6; cursor: wait; }
/* ---------- Pantallas más chicas ---------- */
@media (max-width: 1280px) {
    .fl-cuerpo { padding: 40px 32px; gap: 28px; }
    .fl-form { padding: 36px 36px 22px; }
}
@media (max-width: 1080px) {
    .fl-cuerpo { grid-template-columns: 1fr; }
    .fl-visual { display: none; }
    .fl-form { width: 100%; max-width: 560px; justify-self: center; }
}
@media (max-width: 760px) {
    .fl-cab { padding: 18px 16px; }
    .fl-brillo img { height: 42px; }
    .fl-marca { gap: 14px; }
    .fl-marca > span:last-child { font-size: 20px; padding-left: 14px; }
    .fl-cuerpo { padding: 22px 14px 32px; align-items: start; }
    .fl-form { padding: 28px 22px 18px; border-width: 6px; border-radius: 22px; }
    .fl-form h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .fl-brillo::after { animation: none; display: none; } .p-heroe::after { animation: none; } }
.flog .fl-bajada, .flog .fl-info, .flog .fl-info div { text-align: left !important; }

/* =========================================================================
   LÍNEA UNIFICADA DE INGRESO FEMA (17/11/2026)
   Logo 72 px · nombre del producto 28 px con degradé · formulario 500×600 ·
   animaciones 400×500 (se dibujan a 480×600 y se achican al 83 %, así
   conservan sus proporciones).
   ========================================================================= */
.flog { --degrade: var(--fl-degrade); }
.fl-brillo img { height: 72px !important; width: auto; }
.fl-marca > span:last-child {
    background: var(--degrade); -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
.fl-cuerpo {
    grid-template-columns: 400px 500px; justify-content: center; align-items: center;
    gap: clamp(40px, 6vw, 110px); padding: 48px 24px;
}
.fl-visual {
    width: 480px; height: 600px;
    transform: scale(.8333333); transform-origin: 0 0; margin: 0 -80px -100px 0;
}
.fl-form {
    width: 500px; max-width: 500px; min-height: 600px; justify-self: center;
    padding: 40px 40px 24px; justify-content: center;
}
.fl-form h1 { font-size: 38px; }
@media (max-width: 1280px) {
    .fl-cuerpo { padding: 40px 24px; }
    .fl-form { padding: 40px 40px 24px; }
}
@media (max-width: 1080px) {
    .fl-cuerpo { grid-template-columns: minmax(0, 500px); }
    .fl-visual { display: none; }
    .fl-form { width: 100%; }
}
@media (max-width: 760px) {
    .fl-brillo img { height: 46px !important; }
    .fl-marca > span:last-child { font-size: 20px; }
    .fl-form { min-height: 0; padding: 28px 22px 18px; }
    .fl-form h1 { font-size: 32px; }
}
