:root{
  --bg:#0b1118;
  --panel:#0e1621;
  --panel-2:#101a28;
  --text:#e8f2ff;
  --muted:#9ab1c7;
  --accent:#1abc9c;
  --accent-2:#0c6d8c;
  --warn:#ffb020;
  --danger:#ff4d5e;
  --ok:#31d0aa;
  --radius:16px;
  --shadow-dark: 14px 14px 28px rgba(0,0,0,.55);
  --shadow-lite: -10px -10px 22px rgba(255,255,255,.03);
  --inner: inset 0 0 0 1px rgba(255,255,255,.03);
}
/* Light variant */
html.theme-light{
  --bg:#e8eef5;
  --panel:#f2f6fb;
  --panel-2:#ffffff;
  --text:#0d1b2a;
  --muted:#536170;
  --shadow-dark: 14px 14px 28px rgba(0,0,0,.06);
  --shadow-lite: -10px -10px 22px rgba(255,255,255,.9);
  --inner: inset 0 0 0 1px rgba(0,0,0,.04);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  background:
    radial-gradient(1200px 1200px at 10% -20%, rgba(26, 208, 170,.08), transparent 60%),
    radial-gradient(1200px 1200px at 120% 0%, rgba(12,109,140,.08), transparent 60%),
    linear-gradient(0deg,var(--bg),var(--bg));
}
.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; gap:16px;
  height:64px; padding:0 20px;
  background: linear-gradient(180deg, rgba(16,26,40,.85), rgba(16,26,40,.55));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
html.theme-light .topbar{
  background: linear-gradient(180deg, rgba(230,236,245,.85), rgba(230,236,245,.65));
  border-bottom:1px solid rgba(0,0,0,.05);
}
.logo{ height:42px; filter: drop-shadow(0 0 8px rgba(26,208,170,.45)); }
.muted{opacity:.6; margin-left:6px; font-weight:700; letter-spacing:.4px}
.topnav{ display:flex; gap:10px; margin-left:12px; flex-wrap:wrap; }
.navbtn{
  padding:10px 14px; border-radius:12px; background:var(--panel);
  box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner);
  border:0; color:var(--text); cursor:pointer; font-weight:600; font-size:14px; opacity:.9;
  transition:transform .12s ease, box-shadow .2s ease, opacity .12s ease;
}
.navbtn.active, .navbtn:hover{
  opacity:1; transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(26,208,170,.25), 0 6px 26px rgba(26,208,170,.2), var(--shadow-dark), var(--shadow-lite);
}
.spacer{flex:1}
.badge{
  padding:8px 12px; font-size:12px; border-radius:999px;
  color:#02130f; background:linear-gradient(180deg,#37efc5,#15c6a6);
  box-shadow: 0 0 0 1px rgba(53,238,196,.4), 0 6px 24px rgba(53,238,196,.35);
  font-weight:700; letter-spacing:.3px;
}
.toggle{ display:inline-flex; align-items:center; gap:10px; margin-left:10px; font-size:12px; color:var(--muted); }
.switch{
  width:56px; height:28px; border-radius:999px; position:relative; cursor:pointer;
  background:var(--panel-2); box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner);
}
.knob{
  position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%;
  background: linear-gradient(180deg,#152235,#0e1a2a);
  box-shadow: 2px 3px 9px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.04);
  transition:left .18s ease, box-shadow .18s ease;
}
.switch.on .knob{ left:31px; box-shadow: 0 0 14px rgba(26,208,170,.6), inset 0 0 0 1px rgba(255,255,255,.05) }
.switch.on{ box-shadow: 0 0 0 1px rgba(26,208,170,.25), 0 0 32px rgba(26,208,170,.2), var(--shadow-dark), var(--shadow-lite) }

.wrap{ display:grid; grid-template-columns: 260px 1fr; gap:18px; padding:18px; }
.sidebar{ position:sticky; top:82px; align-self:start; display:flex; flex-direction:column; gap:12px; }
.panel{ background:var(--panel); border-radius:var(--radius); box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner); padding:14px; }
.panel-title{ font-size:12px; color:var(--muted); letter-spacing:.2em; text-transform:uppercase; margin-bottom:8px }
.side-list{ display:flex; flex-direction:column; gap:8px; }
.side-item{ padding:12px; border-radius:12px; display:flex; align-items:center; gap:10px; background:var(--panel-2); box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner); cursor:pointer; transition:transform .12s ease, box-shadow .2s ease, opacity .12s ease; }
.side-item:hover{ transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(12,109,140,.25), 0 6px 24px rgba(12,109,140,.2), var(--shadow-dark), var(--shadow-lite) }
.side-ttl{ font-weight:700 }
.side-sub{ font-size:12px; color:var(--muted) }
.legend{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px }
.chip{ font-size:11px; padding:6px 10px; border-radius:999px; background:rgba(26,208,170,.08); color:#79f0d5; border:1px solid rgba(26,208,170,.22) }
.status{ display:inline-flex; align-items:center; gap:6px; margin:6px 0 }
.dot-ok,.dot-warn,.dot-danger{ width:8px; height:8px; border-radius:50%; box-shadow: 0 0 10px currentColor; }
.dot-ok{ color:var(--ok); background:var(--ok) }
.dot-warn{ color:var(--warn); background:var(--warn) }
.dot-danger{ color:var(--danger); background:var(--danger) }
.warn{ color:var(--warn); font-weight:700 }

.tabs{ display:none } .tabs.active{ display:block }
.hud{
  background:
    linear-gradient(transparent 95%, rgba(26,208,170,.1) 95%),
    linear-gradient(90deg, transparent 95%, rgba(26,208,170,.08) 95%);
  background-size: 32px 32px, 32px 32px;
  border-radius:var(--radius);
  overflow:hidden;
}

.grid{ display:grid; gap:18px; }
.grid.kpi{ grid-template-columns: repeat(5, minmax(0,1fr)); }
.grid.main{ grid-template-columns: 2.2fr 1.4fr; }
.grid.bottom{ grid-template-columns: 1.4fr 1.6fr; }
.mt{ margin-top:18px } .mb{ margin-bottom:14px }

.card{ background:var(--panel); border-radius:var(--radius); box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner); padding:16px; position:relative; overflow:hidden; }
.card::after{ content:""; position:absolute; inset:-40% -40% auto auto; height:160px; width:160px; border-radius:50%; background: radial-gradient(closest-side, rgba(26,208,170,.08), transparent 70%); transform: translate(40px,-40px) rotate(25deg); }
.kpi-title{ font-size:12px; color:var(--muted); letter-spacing:.12em; text-transform:uppercase }
.kpi-value{ font-size:28px; font-weight:800; line-height:1.2; margin-top:8px }
.kpi-foot{ font-size:12px; color:var(--muted); margin-top:6px }
.kpi-dot{ display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--ok); box-shadow:0 0 12px var(--ok); margin-right:6px }

.toolbar{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.btn{ padding:10px 12px; border-radius:12px; background:var(--panel-2); box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner); border:0; color:var(--text); cursor:pointer; font-weight:600; font-size:13px; opacity:.9; }
.btn:hover{ opacity:1; box-shadow: 0 0 0 1px rgba(26,208,170,.25), 0 6px 24px rgba(26,208,170,.2), var(--shadow-dark), var(--shadow-lite) }
.btn.ghost{ background:transparent; border:1px dashed rgba(152,180,210,.25) }
.table-wrap{ max-height:260px; overflow:auto; border-radius:12px; border:1px solid rgba(255,255,255,.04) }

canvas{ width:100%; height:240px; display:block; }

table{ width:100%; border-collapse:collapse; font-size:13px }
th,td{ text-align:left; padding:10px 8px; }
thead th{ position:sticky; top:0; background:linear-gradient(180deg, #102030, #0e1a2a); color:var(--muted); font-weight:700; letter-spacing:.04em; }
tbody tr{ border-bottom:1px dashed rgba(255,255,255,.06) }
tr:hover td{ background: rgba(26,208,170,.05) }

.flow-wrap{
  position:relative; height:540px; border-radius:var(--radius); overflow:hidden;
  background:
    radial-gradient(800px 600px at 10% 10%, rgba(26,208,170,.06), transparent 60%),
    repeating-linear-gradient(0deg, rgba(26,208,170,.06), rgba(26,208,170,.06) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(26,208,170,.05), rgba(26,208,170,.05) 1px, transparent 1px, transparent 24px),
    linear-gradient(180deg,#0a121d,#0a121d);
  box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner);
}
#wires{ position:absolute; inset:0; pointer-events:none; }
.node{ position:absolute; min-width:180px; padding:12px 14px; border-radius:14px; background:var(--panel); box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner); cursor:grab; user-select:none; border:1px solid rgba(255,255,255,.04); }
.node:active{ cursor:grabbing }
.node .title{ font-weight:800; font-size:14px; letter-spacing:.02em }
.ports{ display:flex; justify-content:space-between; gap:8px; margin-top:8px }
.port{ display:inline-flex; align-items:center; gap:6px; padding:8px 10px; border-radius:999px; font-size:12px; background:var(--panel-2); box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner); }
.p-dot{ width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 10px var(--accent) }
.meta{ color:var(--muted); font-size:12px; margin-top:6px }

.wire{ stroke: rgba(53,238,196,.9); stroke-width:2; fill:none; filter:url(#glow) }
.wire.ghost{ stroke-dasharray:6 6; opacity:.7 }
.arrow{ marker-end:url(#arrow) }

.lanes{ display:grid; grid-template-columns: repeat(5, 1fr); gap:16px; }
.lane{ background:var(--panel); border-radius:var(--radius); box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner); padding:12px; position:relative; overflow:hidden; }
.lane h4{ margin:6px 0 10px; font-size:13px; letter-spacing:.08em; color:#9fd9cc; text-transform:uppercase }
.box{ margin:10px 0; padding:10px; border-radius:12px; background:var(--panel-2); box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner); font-size:12px; color:var(--muted) }
.pulse{ position:absolute; width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 10px var(--accent), 0 0 20px var(--accent); top:50%; left:6%; animation: travel 6s linear infinite; }
@keyframes travel{
  0% { transform: translate(0,-50%); opacity:.6 }
  20%{ transform: translate(100%, -50%); }
  40%{ transform: translate(200%, -50%); }
  60%{ transform: translate(300%, -50%) }
  80%{ transform: translate(400%, -50%) }
  100%{ transform: translate(480%, -50%); opacity:.6 }
}

.mini{ font-size:11px; color:var(--muted); text-align:center; margin-top:12px; opacity:.8 }

.icon{ width:18px; height:18px; border-radius:3px; background: linear-gradient(180deg, #37efc5, #15c6a6); box-shadow: 0 0 10px rgba(55,239,197,.4); }
.i-dash{ mask: url(#) }
.i-flow{}
.i-transport{}

@media (max-width: 1200px){
  .grid.kpi{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid.main{ grid-template-columns: 1fr; }
  .grid.bottom{ grid-template-columns: 1fr; }
  .wrap{ grid-template-columns: 1fr; }
  .sidebar{ position:relative; top:auto; }
}


/* Que el contenedor principal se extienda */
.wrap {
  display: flex;
  height: calc(100vh - 60px); /* 100% alto viewport menos topbar */
}

/* Sidebar fijo a la izquierda */
.sidebar {
  width: 240px; /* o lo que tengas definido */
  flex-shrink: 0;
}

/* Main ocupa todo lo demás */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* La sección de tabs ocupa todo el alto disponible */
.tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* La grilla (flow-wrap) ocupa todo */
.flow-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
}

/* El visor EV (iframe) también ocupa todo */
#evViewer {
  flex: 1;
  display: none;
  flex-direction: column;
  height: 100%;
}

#evIframe {
  flex: 1;
  width: 100%;
  border: none;
}



html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* sin scroll */
}

.wrap {
  display: flex;
  height: 100vh; /* siempre toda la pantalla */
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.flow-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
}

#evViewer {
  flex: 1;
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

#evIframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}


html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden; /* evita scroll general */
}

.wrap {
  display: flex;
  height: calc(100vh - 50px); /* 100% pantalla menos la topbar */
  overflow: hidden;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.flow-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

#evViewer {
  flex: 1;
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#evIframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}



#evViewer {
  flex: 1;
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

#evIframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}



/* Ajustes para que visor y grilla ocupen toda la pantalla dentro del main */

/* Contenedor principal ajustado */
.wrap {
  display: flex;
  height: calc(100vh - 50px); /* 100% pantalla menos la topbar */
  overflow: hidden;
}

/* Main ocupa todo */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Tabs ajustan alto */
.tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Grilla de nodos */
.flow-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Visor Edge Vision */
#evViewer {
  flex: 1;
  display: none;             /* oculto por defecto */
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Iframe dentro del visor */
#evIframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}

/* === Sidebar Vision Core Extendido === */

.sidebar .panel {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: rgba(15, 20, 30, 0.8);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.sidebar .panel-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #37efc5;
  text-transform: uppercase;
}

.sidebar .status,
.sidebar .metric {
  font-size: 0.85rem;
  color: #d0d4da;
  margin: 0.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar .status span,
.sidebar .metric span {
  font-weight: 500;
  color: #fff;
}

.sidebar .dot-ok,
.sidebar .dot-warn,
.sidebar .dot-err {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
}

.sidebar .dot-ok { background: #37efc5; }
.sidebar .dot-warn { background: #f0c94a; }
.sidebar .dot-err { background: #f45d5d; }

.sidebar .hud .status {
  border-left: 3px solid rgba(255,255,255,0.1);
  padding-left: 0.5rem;
}


/* === Sidebar estilo Neumórfico Sutil === */

.sidebar .panel {
  margin-bottom: 0.8rem;
  padding: 0.8rem;
  border-radius: 10px;
  background: #0f1624;
  box-shadow: -3px -3px 6px rgba(255,255,255,0.03),
               3px 3px 6px rgba(0,0,0,0.55);
  transition: all 0.2s ease;
}

.sidebar .panel:hover {
  box-shadow: inset -2px -2px 5px rgba(255,255,255,0.04),
              inset 2px 2px 5px rgba(0,0,0,0.55);
}

.sidebar .panel-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #37efc5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.sidebar .status,
.sidebar .metric {
  font-size: 0.8rem;
  margin: 0.3rem 0;
  color: #d0d4da;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: #0d131f;
  box-shadow: inset -1px -1px 2px rgba(255,255,255,0.04),
              inset 1px 1px 3px rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar .status span,
.sidebar .metric span {
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

.sidebar .dot-ok,
.sidebar .dot-warn,
.sidebar .dot-err {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
  box-shadow: inset -1px -1px 2px rgba(255,255,255,0.15),
              inset 1px 1px 2px rgba(0,0,0,0.7);
}

.sidebar .dot-ok   { background: #37efc5; }
.sidebar .dot-warn { background: #f0c94a; }
.sidebar .dot-err  { background: #f45d5d; }


/* === Sidebar Footer === */

.sidebar-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.sidebar-footer .footer-logo {
  text-align: center;
  margin-bottom: 1rem;
}

.sidebar-footer .footer-logo img {
  max-width: 120px;
  opacity: 0.9;
}

.sidebar-footer .footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  margin: 0 0.3rem;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: #0f1624;
  color: #fff;
  box-shadow: -3px -3px 6px rgba(255,255,255,0.03),
               3px 3px 6px rgba(0,0,0,0.55);
  transition: all 0.2s ease;
}

.footer-btn:hover {
  box-shadow: inset -2px -2px 5px rgba(255,255,255,0.04),
              inset 2px 2px 5px rgba(0,0,0,0.55);
}

.footer-btn.live {
  flex: 2;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(145deg, #ff7f50, #ff5722);
  color: #fff;
}

.footer-btn.control {
  background: linear-gradient(145deg, #37efc5, #2bbf9c);
  color: #0b1118;
  font-weight: 700;
}


/* === Topbar === */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: #0b1118;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topbar .brand img.logo {
  max-height: 36px;
}

.topbar .spacer {
  flex: 1;
}

.topbar .topnav {
  display: flex;
  gap: 0.6rem;
}

.top-btn {
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: #0f1624;
  color: #fff;
  box-shadow: -2px -2px 4px rgba(255,255,255,0.03),
               2px 2px 4px rgba(0,0,0,0.55);
  transition: all 0.2s ease;
}

.top-btn:hover {
  box-shadow: inset -2px -2px 4px rgba(255,255,255,0.05),
              inset 2px 2px 4px rgba(0,0,0,0.55);
}

.top-btn.live {
  background: linear-gradient(145deg, #ff7f50, #ff5722);
  color: #fff;
}

.top-btn.control {
  background: linear-gradient(145deg, #37efc5, #2bbf9c);
  color: #0b1118;
  font-weight: 700;
}

/* === Sidebar Footer === */
.sidebar-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  text-align: center;
}

.sidebar-footer img {
  max-width: 120px;
  opacity: 0.85;
}

/* Imagen de preview dentro de los nodos */
.node .preview {
  margin-top: 6px;
  width: 100%;
  height: 100px;            /* altura fija de la caja de imagen */
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d131f;
}

.node .preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;      
  display: block;
  transition: transform 0.3s ease; /* transición suave */
}

/* Efecto zoom al pasar el mouse */
.node .preview:hover img {
  transform: scale(1.1);   /* zoom del 10% */
}

/* === Pantalla de Login === */

.login-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background:
    radial-gradient(800px 600px at 10% 10%, rgba(26,208,170,.06), transparent 60%),
    linear-gradient(180deg,#0a121d,#0a121d);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

.login-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.login-logo {
  max-height: 60px;
  filter: drop-shadow(0 0 8px rgba(26,208,170,.45));
}

.login-box {
  width: 320px;
  padding: 30px;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner);
  text-align: center;
}

.login-title {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 700;
}

.input-group {
  margin-bottom: 15px;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner);
  outline: none;
  transition: box-shadow 0.2s ease;
}

.input-group input:focus {
  box-shadow: 0 0 0 1px rgba(26,208,170,.25),
              0 6px 20px rgba(26,208,170,.2),
              var(--shadow-dark), var(--shadow-lite);
}

.login-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, #37efc5, #2bbf9c);
  color: #0b1118;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: -2px -2px 4px rgba(255,255,255,0.05),
               2px 2px 4px rgba(0,0,0,0.55);
  transition: all 0.2s ease;
}

.login-btn:hover {
  box-shadow: inset -2px -2px 4px rgba(255,255,255,0.05),
              inset 2px 2px 4px rgba(0,0,0,0.55);
}

/* === Pantalla de Login === */

.login-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background:
    radial-gradient(800px 600px at 10% 10%, rgba(26,208,170,.06), transparent 60%),
    linear-gradient(180deg,#0a121d,#0a121d);
}

.login-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.login-logo {
  max-height: 60px;
  filter: drop-shadow(0 0 8px rgba(26,208,170,.45));
}

.login-box {
  width: 320px;
  padding: 30px;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner);
  text-align: center;
}

.login-title {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 700;
}

.input-group {
  margin-bottom: 15px;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  box-shadow: var(--shadow-dark), var(--shadow-lite), var(--inner);
  outline: none;
  transition: box-shadow 0.2s ease;
}

.input-group input:focus {
  box-shadow: 0 0 0 1px rgba(26,208,170,.25),
              0 6px 20px rgba(26,208,170,.2),
              var(--shadow-dark), var(--shadow-lite);
}

.login-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, #37efc5, #2bbf9c);
  color: #0b1118;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: -2px -2px 4px rgba(255,255,255,0.05),
               2px 2px 4px rgba(0,0,0,0.55);
  transition: all 0.2s ease;
}

.login-btn:hover {
  box-shadow: inset -2px -2px 4px rgba(255,255,255,0.05),
              inset 2px 2px 4px rgba(0,0,0,0.55);
}
