/* Pantalla de acceso — mismo diseño que el Portal de Gobernabilidad (gobernabilidad.agunsa.com) */
[hidden] { display: none !important; }

.arranque { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #0d0d0d; color: rgba(255,255,255,0.35); font: 13px 'Segoe UI', Calibri, Arial, sans-serif; z-index: 50; }

.login {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; overflow: hidden; background: #0d0d0d;
  font-family: 'Segoe UI', Calibri, Arial, sans-serif;
}
.lg-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(190,2,18,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(68,84,106,0.22) 0%, transparent 60%),
    linear-gradient(160deg, #0a0a0a 0%, #1a0608 40%, #0d1520 100%);
}
.lg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}
.lg-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; max-width: 100vw; height: 400px;
  background: radial-gradient(ellipse, rgba(190,2,18,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.lg-card {
  position: relative; z-index: 1;
  width: 420px; max-width: calc(100vw - 32px);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 48px 44px 40px;
  backdrop-filter: blur(24px);
  box-shadow: 0 0 0 1px rgba(190,2,18,0.15), 0 32px 80px rgba(0,0,0,0.6), 0 0 120px rgba(190,2,18,0.06);
  animation: lg-fadeUp 0.6s ease both;
}
@keyframes lg-fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.lg-logo-wrap { display: flex; align-items: center; justify-content: center; margin-bottom: 32px; }
.lg-logo-img { height: 44px; filter: brightness(0) invert(1); }
.lg-logo-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.2); margin: 0 18px; }
.lg-logo-tag { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.5); line-height: 1.4; }
.lg-logo-tag strong { display: block; color: rgba(255,255,255,0.85); font-size: 12px; }

.lg-card h1 { font-size: 22px; font-weight: 700; color: #fff; text-align: center; margin: 0 0 6px; letter-spacing: -.3px; }
.lg-sub { font-size: 13px; color: rgba(255,255,255,0.45); text-align: center; margin: 0 0 36px; line-height: 1.5; }

.lg-btn-ms {
  width: 100%; padding: 14px 20px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px;
  color: #fff; font: 600 14px 'Segoe UI', Calibri, Arial, sans-serif; letter-spacing: .2px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: all 0.2s ease;
}
.lg-btn-ms:hover { background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.lg-btn-ms:active { transform: translateY(0); }
.lg-btn-ms:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }
.lg-ms-icon { width: 20px; height: 20px; flex-shrink: 0; }
.lg-btn-ms.loading { pointer-events: none; opacity: .6; }
.lg-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: lg-spin 0.7s linear infinite; display: none; }
.lg-btn-ms.loading .lg-spinner { display: block; }
.lg-btn-ms.loading .lg-ms-icon { display: none; }
@keyframes lg-spin { to { transform: rotate(360deg); } }

.lg-btn-link { display: block; margin: 12px auto 0; background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,0.55); font: 12px 'Segoe UI', Calibri, Arial, sans-serif; text-decoration: underline; }
.lg-btn-link:hover { color: #fff; }

.lg-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.lg-divider::before, .lg-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
.lg-divider span { font-size: 11px; color: rgba(255,255,255,0.25); white-space: nowrap; }

.lg-info { background: rgba(190,2,18,0.08); border: 1px solid rgba(190,2,18,0.2); border-radius: 8px;
  padding: 12px 14px; font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.6; text-align: center; }
.lg-info span { color: rgba(255,255,255,0.75); }

.lg-access-note { margin-top: 28px; text-align: center; font-size: 11px; color: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; gap: 6px; }

.lg-error { display: none; margin-bottom: 20px; background: rgba(190,2,18,0.15); border: 1px solid rgba(190,2,18,0.4);
  border-radius: 8px; padding: 10px 14px; font-size: 12px; color: #ff8080; text-align: center; line-height: 1.5; }
.lg-error.show { display: block; }

.lg-footer { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-size: 11px;
  color: rgba(255,255,255,0.2); letter-spacing: .3px; }

@media (max-width: 480px) {
  .lg-card { padding: 36px 24px 30px; }
  .lg-logo-wrap { flex-direction: column; gap: 12px; }
  .lg-logo-divider { display: none; }
  .lg-logo-tag { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .lg-card { animation: none; } .lg-spinner { animation-duration: 2s; } }
