/* 登录门禁弹窗 — 独立作用域，不影响新建/删除弹窗 */
.api-intel-login-gate {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: var(--aiintel-font, "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif);
}

.api-intel-login-gate[hidden] {
  display: none !important;
}

.api-intel-login-gate__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(56, 189, 248, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 60% 50% at 78% 78%, rgba(14, 116, 144, 0.14) 0%, transparent 55%),
    linear-gradient(165deg, rgba(226, 232, 240, 0.42) 0%, rgba(241, 245, 249, 0.55) 100%);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  animation: apiIntelLoginGateFade 0.28s var(--aiintel-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.api-intel-login-gate__panel {
  position: relative;
  z-index: 1;
  width: min(21.5rem, calc(100% - 1.5rem));
  padding: 1.45rem 1.3rem 1.2rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.48) 52%, rgba(224, 242, 254, 0.42) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 28px 56px -30px rgba(15, 39, 68, 0.48),
    0 0 0 1px rgba(14, 116, 144, 0.05);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  animation: apiIntelLoginGateIn 0.36s var(--aiintel-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.api-intel-login-gate__orb {
  position: absolute;
  z-index: 0;
  width: 11rem;
  height: 11rem;
  top: -3.2rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(56, 189, 248, 0.35), rgba(14, 116, 144, 0.08) 55%, transparent 72%);
  pointer-events: none;
  filter: blur(1px);
}

.api-intel-login-gate__icon {
  position: relative;
  z-index: 1;
  width: 3.1rem;
  height: 3.1rem;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  border-radius: 0.95rem;
  color: #0e7490;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(186, 230, 253, 0.55));
  border: 1px solid rgba(14, 116, 144, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 12px 22px -14px rgba(14, 116, 144, 0.55);
}

.api-intel-login-gate__panel h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f1c2e;
}

.api-intel-login-gate__desc {
  position: relative;
  z-index: 1;
  margin: 0 auto 1.2rem;
  max-width: 18rem;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.55;
  color: #5a6b7d;
}

.api-intel-login-gate__desc span {
  display: inline;
  color: #7b8a9a;
}

.api-intel-login-gate__actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.api-intel-login-gate__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.6rem;
  height: 2.35rem;
  padding: 0 1.05rem;
  border-radius: 0.78rem;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    transform 0.22s var(--aiintel-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.22s var(--aiintel-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    filter 0.22s var(--aiintel-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    background 0.22s var(--aiintel-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.api-intel-login-gate__btn--ghost {
  color: #243447;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.78) 0%, rgba(241, 245, 249, 0.55) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.api-intel-login-gate__btn--ghost:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(226, 232, 240, 0.7) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 18px -14px rgba(15, 28, 46, 0.35);
}

.api-intel-login-gate__btn--primary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(135deg, #22d3ee 0%, #0e7490 48%, #155e75 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 14px 26px -14px rgba(14, 116, 144, 0.75);
}

.api-intel-login-gate__btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05) saturate(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 18px 30px -14px rgba(14, 116, 144, 0.85);
}

.api-intel-login-gate__btn--primary:active,
.api-intel-login-gate__btn--ghost:active {
  transform: translateY(0);
}

@keyframes apiIntelLoginGateFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes apiIntelLoginGateIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .api-intel-login-gate__backdrop,
  .api-intel-login-gate__panel,
  .api-intel-login-gate__btn {
    animation: none !important;
    transition: none !important;
  }
  .api-intel-login-gate__btn:hover {
    transform: none;
  }
}
