﻿/* =====================================================================
   SIVEC · Pantalla de inicio de sesión (tarjeta dividida)
   La imagen de fondo NO se estira a toda la pantalla: va en el panel izquierdo.
   ===================================================================== */
:root { --lg-azul: #194eae; --lg-azul2: #123c88; --lg-texto: #1f2937; --lg-gris: #6b7487; --lg-borde: #d8dfeb; }
.lg-body { margin: 0; min-height: 100vh; font-family: "Segoe UI", Roboto, Arial, sans-serif; color: var(--lg-texto);
    background: radial-gradient(circle at 12% 15%, #dfe8f8 0, transparent 45%), radial-gradient(circle at 88% 85%, #dde6f6 0, transparent 45%), #eef2f8;
    display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; box-sizing: border-box; }
.lg-body *, .lg-body *::before, .lg-body *::after { box-sizing: border-box; }
.lg-tarjeta { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); width: 100%; max-width: 1400px; height: min(94vh, 880px); min-height: 560px;
    background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 28px 70px rgba(20, 40, 90, .20); }

/* Panel izquierdo: imagen + texto */
.lg-arte { position: relative; background: #e9eef7 url('../content/Imgs/background2.png') center / cover no-repeat;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; color: #fff; }
.lg-arte::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,78,174,.08) 0%, rgba(18,40,100,.15) 45%, rgba(14,32,80,.86) 100%); }
.lg-arte > * { position: relative; }
.lg-arte h2 { margin: 0 0 8px; font-size: 30px; font-weight: 700; letter-spacing: .01em; color: #fff; }
.lg-arte p { margin: 0; font-size: 15px; opacity: .92; line-height: 1.5; max-width: 420px; }
.lg-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.lg-chips span { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.38); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; backdrop-filter: blur(4px); }

/* Panel derecho: formulario */
.lg-form { display: flex; align-items: center; justify-content: center; padding: 40px 48px; overflow-y: auto; }
.lg-caja { width: 100%; max-width: 420px; }
.lg-logo { height: 56px; object-fit: contain; display: block; margin-bottom: 28px; }
.lg-caja h1 { margin: 0; font-size: 28px; font-weight: 700; color: var(--lg-texto); }
.lg-sub { color: var(--lg-gris); font-size: 15px; margin: 8px 0 28px; }
.lg-campo { position: relative; margin-bottom: 16px; }
.lg-campo label { display: block; font-size: 13px; font-weight: 600; color: #46536b; margin-bottom: 6px; }
.lg-campo .lg-ico { position: absolute; left: 13px; bottom: 15px; color: #9aa6bd; pointer-events: none; }
.lg-campo input, .lg-campo select { width: 100%; height: 50px; border: 1px solid var(--lg-borde); border-radius: 10px; padding: 0 44px 0 42px; font-size: 15.5px;
    font-family: inherit; color: var(--lg-texto); background-color: #fff; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; margin: 0; }
.lg-campo select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7487' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; }
.lg-campo input:focus, .lg-campo select:focus { outline: 0; border-color: var(--lg-azul); box-shadow: 0 0 0 3px rgba(25,78,174,.15); }
.lg-campo.lg-error input, .lg-campo.lg-error select { border-color: #dc3545; background-color: #fff8f8; }
.lg-ojo { position: absolute; right: 8px; bottom: 9px; border: 0; background: none; color: #9aa6bd; cursor: pointer; padding: 6px; border-radius: 6px; line-height: 0; }
.lg-ojo:hover { color: var(--lg-azul); background: #eef3fd; }
.lg-recordar { display: flex; align-items: center; font-size: 13.5px; color: var(--lg-gris); margin: 4px 0 22px; }
.lg-recordar label { display: flex; gap: 7px; align-items: center; cursor: pointer; margin: 0; font-weight: 400; }
.lg-entrar { width: 100%; height: 52px; border: 0; border-radius: 10px; background: var(--lg-azul); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; transition: background .15s; }
.lg-entrar:hover { background: var(--lg-azul2); }
.lg-entrar:disabled { opacity: .7; cursor: wait; }
.lg-aviso { background: #fdecee; color: #b42318; border: 1px solid #f5c2c7; border-radius: 8px; padding: 9px 12px; font-size: 13.5px; margin-bottom: 16px; }
.lg-version { font-size: 12.5px; color: #9aa6bd; text-align: center; margin-top: 26px; }

@media (max-width: 860px) {
    .lg-body { padding: 0; align-items: stretch; }
    .lg-tarjeta { grid-template-columns: 1fr; grid-template-rows: 210px 1fr; height: auto; min-height: 100vh; border-radius: 0; box-shadow: none; }
    .lg-arte { padding: 22px; }
    .lg-arte h2 { font-size: 22px; }
    .lg-arte p, .lg-chips { display: none; }
    .lg-form { padding: 28px 22px; }
}

/* =====================================================================
   Panel izquierdo: ilustración propia (crecimiento / subir) en los grises
   del menú principal. Reemplaza la imagen background2.png.
   ===================================================================== */
.lg-arte { background: #5a606a; overflow: hidden; }
.lg-arte::before { z-index: 1; background: linear-gradient(180deg, rgba(40,44,52,0) 0%, rgba(40,44,52,.10) 45%, rgba(34,38,46,.82) 100%); }
.lg-arte > * { z-index: 2; }
.lg-arte > .lg-escena { position: absolute; inset: 0; z-index: 0; }
.lg-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lg-chips span { background: rgba(255,255,255,.14); }

/* barras: crecen al cargar */
.lg-barras .b { fill: url(#lgBarra); stroke: #fff; stroke-opacity: .55; stroke-width: 1.5; transform-box: fill-box; transform-origin: bottom; animation: lgCrece 1.1s cubic-bezier(.2,.8,.25,1) backwards; }
.lg-barras .b1 { animation-delay: .10s; } .lg-barras .b2 { animation-delay: .18s; } .lg-barras .b3 { animation-delay: .26s; }
.lg-barras .b4 { animation-delay: .34s; } .lg-barras .b5 { animation-delay: .42s; } .lg-barras .b6 { animation-delay: .50s; }
.lg-barras .b7 { animation-delay: .58s; fill-opacity: 1; stroke-opacity: .9; }
/* línea: se dibuja hacia arriba; nodos y flecha aparecen después */
.lg-tendencia { stroke-dasharray: 900; stroke-dashoffset: 900; animation: lgDibuja 1.6s ease-out .7s forwards; }
.lg-nodos circle { opacity: 0; animation: lgAparece .4s ease-out forwards; }
.lg-nodos circle:nth-child(1) { animation-delay: .95s; } .lg-nodos circle:nth-child(2) { animation-delay: 1.1s; } .lg-nodos circle:nth-child(3) { animation-delay: 1.25s; }
.lg-nodos circle:nth-child(4) { animation-delay: 1.4s; } .lg-nodos circle:nth-child(5) { animation-delay: 1.55s; } .lg-nodos circle:nth-child(6) { animation-delay: 1.7s; }
.lg-flecha { opacity: 0; animation: lgAparece .4s ease-out 2.2s forwards; }
.lg-flecha path { animation: lgFlechaSube 2.6s ease-in-out 2.6s infinite; }

/* partículas que suben todo el tiempo */
.lg-sube { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lg-sube i, .lg-sube b { position: absolute; bottom: -20px; display: block; animation: lgSube var(--d, 12s) linear var(--r, 0s) infinite; opacity: 0; }
.lg-sube i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.65); box-shadow: 0 0 8px rgba(255,255,255,.5); }
.lg-sube b { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 11px solid rgba(255,255,255,.45); }

@keyframes lgCrece { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes lgDibuja { to { stroke-dashoffset: 0; } }
@keyframes lgAparece { to { opacity: 1; } }
@keyframes lgFlechaSube { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes lgSube { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: .8; } 100% { transform: translateY(-115vh); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .lg-barras .b, .lg-tendencia, .lg-nodos circle, .lg-flecha, .lg-flecha path, .lg-sube i, .lg-sube b { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
    .lg-sube { display: none; }
}
/* fondo de la página en gris tenue, como el menú principal */
.lg-body { background: radial-gradient(circle at 12% 15%, #f4f5f7 0, transparent 45%), radial-gradient(circle at 88% 85%, #dfe2e6 0, transparent 45%), #eceef1; }
.lg-tarjeta { box-shadow: 0 28px 70px rgba(30, 35, 45, .22); }
