/* Standalone public login: no dashboard CSS or font dependencies. */
* { box-sizing: border-box; }
html { height: 100%; }
body { font-size: 14px; line-height: 1.42857143; }
button, input { font-family: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .86; }
.ig-login-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.13em; fill: currentColor; }
.ig-login-shell button .ig-login-icon { margin-right: 6px; }
.ig-login-shell .form-module { border-top-width: 1px; }
.ig-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.whatsapp-button { position:fixed; bottom:20px; right:20px; z-index:1000; width:70px; height:70px; border-radius:50%; background-color:#25d366; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 8px rgba(0,0,0,.3); transition:transform .2s; }
.whatsapp-button:hover { transform:scale(1.06); }
.whatsapp-button svg { width:35px; height:35px; fill:white; }
/* ==========================================================
       LOGIN · Red inteligente de relaciones y vínculos
       ========================================================== */
    body.ig-login-page {
      min-height: 100vh;
      margin: 0;
      overflow: hidden;
      font-family: "Segoe UI", Arial, sans-serif;
      background: #020617;
    }

    .ig-login-network-bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      background:
        radial-gradient(circle at 18% 18%, rgba(37, 99, 235, .20), transparent 38%),
        radial-gradient(circle at 82% 76%, rgba(6, 182, 212, .12), transparent 38%),
        linear-gradient(135deg, #020617 0%, #0f172a 52%, #1e3a8a 100%);
    }

    .ig-login-network-bg::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(125, 211, 252, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, .022) 1px, transparent 1px);
      background-size: 52px 52px;
      mask-image: radial-gradient(circle at center, #000 18%, transparent 82%);
      -webkit-mask-image: radial-gradient(circle at center, #000 18%, transparent 82%);
    }

    .ig-login-network-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at center, transparent 20%, rgba(2, 6, 23, .32) 100%),
        linear-gradient(90deg, rgba(2, 6, 23, .10), transparent 35%, rgba(2, 6, 23, .08));
    }

    #ig-login-network {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      cursor: crosshair;
      touch-action: manipulation;
    }

    .ig-login-shell {
      position: fixed;
      inset: 0;
      z-index: 3;
      width: 100%;
      height: 100vh;
      height: 100svh;
      min-height: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      padding: 24px;
      pointer-events: none;
    }

    .ig-login-shell .form-module {
      position: relative;
      top: auto;
      right: auto;
      bottom: auto;
      left: auto;
      transform: none !important;
      width: min(430px, calc(100vw - 36px));
      max-width: 430px;
      margin: 0 !important;
      overflow: hidden;
      pointer-events: auto;
      border: 1px solid rgba(255, 255, 255, .18);
      border-radius: 22px;
      background: rgba(255, 255, 255, .10);
      box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .ig-login-shell .form-module::before {
      content: '';
      position: absolute;
      top: -85px;
      right: -70px;
      width: 190px;
      height: 190px;
      border-radius: 50%;
      pointer-events: none;
      background: radial-gradient(circle, rgba(56, 189, 248, .16), transparent 68%);
    }

    .ig-login-brand {
      position: relative;
      padding: 42px 45px 0;
      text-align: center;
      color: #fff;
    }

    .ig-login-brand-logo {
      width: min(300px, 100%);
      height: 110px;
      min-height: 0;
      margin: 0 auto;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      overflow: visible;
    }

    .ig-login-brand-logo img {
      display: block;
      width: 100%;
      height: 110px;
      max-width: none;
      max-height: none;
      object-fit: contain;
      filter: drop-shadow(0 10px 20px rgba(2, 6, 23, .38));
    }

    .ig-login-brand p {
      margin: 14px 0 0;
      color: #cbd5e1;
      font-size: 14px;
    }

    .ig-login-shell .form-module .form {
      position: relative;
      display: block;
      padding: 28px 45px 38px;
      background: transparent;
    }

    .ig-login-shell #form-login h2 {
      margin: 0 0 7px;
      color: #fff;
      font-size: 24px;
      font-weight: 700;
      letter-spacing: -.35px;
    }

    .ig-login-subtitle {
      margin: 0 0 22px;
      color: #cbd5e1;
      font-size: 13px;
      line-height: 1.45;
      text-align: center;
    }

    .ig-login-input {
      position: relative;
      margin-bottom: 18px;
    }

    .ig-login-input > i {
      position: absolute;
      z-index: 1;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: #64748b;
      font-size: 16px;
      pointer-events: none;
    }

    .ig-login-shell #form-login .ig-login-input input[type="text"],
    .ig-login-shell #form-login .ig-login-input input[type="password"] {
      width: 100%;
      height: 50px;
      box-sizing: border-box;
      margin: 0;
      padding: 0 15px 0 45px;
      border: 0;
      border-radius: 10px;
      outline: none;
      background: rgba(255, 255, 255, .96);
      color: #0f172a;
      font-size: 15px;
      transition: box-shadow .18s ease, background .18s ease;
    }

    .ig-login-shell #form-login input:focus {
      background: #fff;
      box-shadow: 0 0 0 3px rgba(56, 189, 248, .35);
    }

    .ig-login-shell #form-login button {
      width: 100%;
      min-height: 50px;
      margin-top: 10px;
      border: 0;
      border-radius: 10px;
      background: linear-gradient(135deg, #2563eb, #0284c7);
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: .2px;
      transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    }

    .ig-login-shell #form-login button:hover,
    .ig-login-shell #form-login button:focus {
      transform: translateY(-1px);
      filter: brightness(1.04);
      box-shadow: 0 15px 35px rgba(14, 165, 233, .45);
      outline: none;
    }

    .ig-login-shell #form-login button:active { transform: translateY(0); }

    .ig-login-shell .help-block {
      margin: -9px 0 14px;
      padding: 9px 11px;
      border: 1px solid rgba(248, 113, 113, .45);
      border-radius: 8px;
      background: rgba(239, 68, 68, .15);
      color: #fecaca;
      font-size: 12px;
      text-align: center;
    }

    .ig-login-security {
      margin-top: 29px;
      padding-top: 19px;
      border-top: 1px solid rgba(255, 255, 255, .15);
      color: #cbd5e1;
      font-size: 12px;
      line-height: 1.65;
      text-align: center;
    }

    .ig-login-security i {
      margin-right: 5px;
      color: #7dd3fc;
    }

    .ig-network-status {
      position: fixed;
      z-index: 2;
      left: 50%;
      bottom: 19px;
      transform: translateX(-50%);
      width: max-content;
      max-width: calc(100vw - 150px);
      padding: 0;
      color: #94a3b8;
      pointer-events: none;
      text-align: center;
    }

    .ig-network-status strong {
      display: block;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: .25px;
    }

    .ig-network-status small {
      display: block;
      margin-top: 2px;
      color: rgba(148, 163, 184, .72);
      font-size: 10px;
    }

    @media (max-width: 640px) {
      .ig-login-shell { align-items: center; padding: 18px; }
      .ig-login-shell .form-module { border-radius: 20px; }
      .ig-login-brand { padding: 22px 24px 0; }
      .ig-login-brand-logo { width: min(240px, 100%); height: 78px; }
      .ig-login-brand-logo img { height: 78px; }
      .ig-login-brand p { margin-top: 10px; font-size: 13px; }
      .ig-login-shell .form-module .form { padding: 18px 24px 24px; }
      .ig-login-input { margin-bottom: 14px; }
      .ig-login-shell #form-login .ig-login-input input[type="text"],
      .ig-login-shell #form-login .ig-login-input input[type="password"] { height: 48px; }
      .ig-login-shell #form-login button { min-height: 48px; margin-top: 6px; }
      .ig-login-security { margin-top: 22px; padding-top: 16px; }
      .ig-network-status { bottom: 17px; }
      body.ig-login-page .whatsapp-button {
        right: 18px;
        bottom: 18px;
        width: 48px;
        height: 48px;
      }
      body.ig-login-page .whatsapp-button img { width: 27px; height: 27px; }
    }

    @media (max-height: 590px) {
      .ig-login-shell { padding-top: 16px; padding-bottom: 16px; }
      .ig-login-brand { padding-top: 18px; }
      .ig-login-shell .form-module .form { padding-top: 12px; padding-bottom: 22px; }
      .ig-login-subtitle { margin-bottom: 14px; }
      .ig-network-status { display: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      .ig-login-shell *, .ig-login-shell *::before, .ig-login-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
      }
    }
  
/* Keep input interaction responsive when the renderer reduces its budget. */
html.ig-login-performance-lite .ig-login-shell .form-module {
  background: rgba(15, 23, 42, .88);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ig-login-shell { height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
.ig-login-shell #form-login .ig-login-input input[type="text"],
.ig-login-shell #form-login .ig-login-input input[type="password"] { font-size:16px; }
.ig-login-shell button.is-submitting::before {
  content:''; display:inline-block; width:14px; height:14px; margin-right:9px;
  border:2px solid rgba(255,255,255,.35); border-top-color:white; border-radius:50%;
  vertical-align:-2px; animation:ig-login-spin .8s linear infinite;
}
.ig-login-shell button.is-submitting .ig-login-icon { display:none; }
@keyframes ig-login-spin { to { transform: rotate(360deg); } }
@media (max-height:520px) { .ig-login-shell { align-items:flex-start; } }
@media (max-width:640px) { .whatsapp-button svg { width:27px; height:27px; } }
@media (prefers-reduced-motion:reduce) { .ig-login-shell button.is-submitting::before { animation:none; } }
