/* JokeLink 登录门：明亮宝可梦 · 电光皮卡丘轻奢主题 */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes jl-core-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .42; } }
@keyframes jl-pika-pulse {
  0%, 100% { opacity: .42; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes jl-pika-tilt {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
@keyframes jl-pika-glow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.65)) drop-shadow(0 0 35px rgba(234, 179, 8, 0.35)); }
  50% { filter: drop-shadow(0 0 26px rgba(250, 204, 21, 0.95)) drop-shadow(0 0 48px rgba(234, 179, 8, 0.5)); }
}
@keyframes jl-ball-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(250, 204, 21, 0.45), 0 8px 18px rgba(234, 179, 8, 0.18); }
  50% { box-shadow: 0 0 26px rgba(250, 204, 21, 0.8), 0 0 40px rgba(234, 179, 8, 0.35); }
}
@keyframes login-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
@keyframes login-hud-soft { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }
@keyframes login-hud-ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes neonCyanPulse {
  0% { text-shadow: 0 0 4px rgba(14, 165, 233, 0.15); color: #0e7490; }
  100% { text-shadow: 0 0 12px rgba(14, 165, 233, 0.35); color: #155e75; }
}
@keyframes neonAmberPulse {
  0% { text-shadow: 0 0 6px rgba(251, 191, 36, 0.25); color: #b45309; }
  100% { text-shadow: 0 0 16px rgba(250, 204, 21, 0.55), 0 0 28px rgba(234, 179, 8, 0.28); color: #92400e; }
}
@keyframes login-spark {
  0%, 100% { opacity: .15; transform: scale(.7) rotate(0deg); }
  50% { opacity: .85; transform: scale(1) rotate(18deg); }
}

.login-gate {
  min-height: 100%;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  background-color: #fffbeb;
  background-image:
    radial-gradient(520px circle at 18% 12%, rgba(253, 224, 71, 0.45), transparent 58%),
    radial-gradient(640px circle at 82% 18%, rgba(250, 204, 21, 0.28), transparent 62%),
    radial-gradient(580px circle at 70% 88%, rgba(253, 224, 71, 0.22), transparent 70%),
    linear-gradient(160deg, #fffbeb 0%, #fef9c3 52%, rgba(254, 240, 138, 0.42) 100%);
}
#app > .login-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  min-height: 0;
}
.login-gate .login-mesh {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(180, 83, 9, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 83, 9, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 42%, #000 28%, transparent 82%);
}
.login-gate .login-bolts {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.login-gate .login-bolts i {
  position: absolute; width: 10px; height: 10px;
  background: radial-gradient(circle, #fef08a 0%, #facc15 40%, transparent 70%);
  border-radius: 50%;
  animation: login-spark 2.4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.7);
}
.login-gate .login-bolts i:nth-child(1) { top: 16%; left: 12%; animation-delay: 0s; }
.login-gate .login-bolts i:nth-child(2) { top: 28%; right: 14%; animation-delay: .4s; width: 14px; height: 14px; }
.login-gate .login-bolts i:nth-child(3) { bottom: 22%; left: 18%; animation-delay: .8s; }
.login-gate .login-bolts i:nth-child(4) { bottom: 18%; right: 22%; animation-delay: 1.2s; width: 8px; height: 8px; }
.login-gate .login-pika-stage {
  position: absolute; right: 4%; bottom: 4%; width: min(38vw, 420px); height: min(38vw, 420px);
  z-index: 1; pointer-events: none; user-select: none; opacity: .88;
}
.login-gate .login-pika-stage img {
  width: 100%; height: 100%; object-fit: contain;
  animation: jl-pika-tilt 4s ease-in-out infinite, jl-pika-glow 1.8s ease-in-out infinite;
}
@media (max-width: 1179px) {
  .login-gate .login-pika-stage { width: 180px; height: 180px; right: -8px; bottom: 8px; opacity: .55; }
}
.login-gate .login-hud {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; user-select: none;
  display: none; align-items: center; justify-content: space-between;
  padding: 0 48px;
}
@media (min-width: 1180px) { .login-gate .login-hud { display: flex; } }
@media (min-width: 1440px) { .login-gate .login-hud { padding: 0 96px; } }
.login-hud-col { width: 256px; }
.login-hud-col.is-right { transform: translateY(48px); }
.login-hud-head { border-left: 2px solid #f59e0b; padding-left: 12px; margin-bottom: 24px; }
.login-hud-col.is-right .login-hud-head {
  border-left: 0; border-right: 2px solid #fbbf24; padding-left: 0; padding-right: 12px; text-align: right;
}
.login-hud-kicker {
  font-size: 10px; letter-spacing: .2em; font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase; animation: login-hud-soft 3s ease-in-out infinite; font-weight: 700;
}
.login-hud-kicker.is-cyan { color: #0e7490; }
.login-hud-kicker.is-amber { color: #b45309; }
.login-hud-title { margin: 6px 0 0; font-size: 16px; font-weight: 800; letter-spacing: .04em; color: #1e293b; }
.login-hud-title.is-cyan { animation: neonCyanPulse 3.5s ease-in-out infinite alternate; }
.login-hud-title.is-amber { animation: neonAmberPulse 3.5s ease-in-out infinite alternate; }
.login-hud-card {
  padding: 12px; margin-bottom: 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(253, 230, 138, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(234, 179, 8, 0.08);
}
.login-hud-item {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
  font-size: 12px; font-weight: 700; color: #1e293b;
}
.login-hud-item.is-cyan { color: #155e75; }
.login-hud-item.is-amber { color: #92400e; justify-content: flex-end; }
.login-hud-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.login-hud-dot.is-cyan { background: #22d3ee; box-shadow: 0 0 8px #22d3ee; }
.login-hud-dot.is-amber { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.login-hud-dot.is-ping { animation: login-hud-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite; }
.login-hud-copy {
  margin: 0; font-size: 11px; line-height: 1.6; color: #475569;
  font-family: Consolas, "Courier New", monospace;
}
.login-hud-col.is-right .login-hud-copy { text-align: right; }

.login-gate .login-box {
  position: relative; z-index: 10; isolation: isolate;
  width: 412px; max-width: calc(100vw - 32px);
  padding: 36px 32px; overflow: visible;
  background: transparent; border: 0; box-shadow: none;
  color: #1e293b;
}
.login-gate .login-box-face {
  position: absolute; inset: 0; z-index: 10; pointer-events: none; border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(253, 230, 138, 0.9);
  box-shadow: 0 12px 36px rgba(234, 179, 8, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.login-gate .login-box-face::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, transparent 36%);
}
.login-gate .login-box-face::after {
  content: ""; position: absolute; top: -22px; right: -18px; width: 160px; height: 160px;
  border-radius: 50%; pointer-events: none;
  background: rgba(250, 204, 21, 0.28); filter: blur(36px);
  animation: jl-pika-pulse 1.8s ease-in-out infinite;
}
.login-gate .login-box-inner { position: relative; z-index: 10; }
.login-gate .login-box.is-shake { animation: login-shake .38s ease; }
.login-gate .login-brand { position: relative; z-index: 1; text-align: center; margin-bottom: 26px; }
.login-gate .login-pika-shoulder {
  position: absolute; top: -136px; right: -48px; width: 224px; height: 224px;
  z-index: 0; pointer-events: none; user-select: none;
}
.login-gate .login-pika-halo {
  position: absolute; inset: -16px; border-radius: 50%;
  background: linear-gradient(to top right, rgba(253, 224, 71, 0.55), rgba(251, 191, 36, 0.45), rgba(254, 240, 138, 0.2));
  filter: blur(52px);
  animation: jl-pika-pulse 1.4s ease-in-out infinite;
}
.login-gate .login-pika-img {
  position: relative; width: 100%; height: 100%; object-fit: contain; display: block;
  animation: jl-pika-tilt 3.5s ease-in-out infinite, jl-pika-glow 1.8s ease-in-out infinite;
}
@media (max-width: 640px) {
  .login-gate .login-pika-shoulder { top: -100px; right: -16px; width: 168px; height: 168px; }
}
.login-gate .login-logo {
  width: 48px; height: 48px; margin: 0 auto 16px;
  border-radius: 50%; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid rgba(251, 191, 36, 0.65);
  animation: jl-ball-glow 1.8s ease-in-out infinite;
  position: relative; overflow: visible;
}
.login-gate .login-logo svg { width: 42px; height: 42px; overflow: visible; display: block; }
.login-gate .jl-pokeball .jl-core { animation: jl-core-pulse 1.6s ease-in-out infinite; }
.login-gate .login-title {
  margin: 0; font-size: 28px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.15;
  background: linear-gradient(90deg, #78350f, #d97706 42%, #facc15);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.35));
}
.login-gate .login-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 6px 14px; border-radius: 999px; max-width: 100%;
  background: rgba(255, 251, 235, 0.9); border: 1px solid rgba(253, 230, 138, 0.95);
  color: #57534e; font-size: 12px;
}
.login-gate .login-status { display: inline-flex; align-items: center; gap: 6px; color: #15803d; font-weight: 700; }
.login-gate .login-status i {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 8px #22c55e; display: inline-block;
}
.login-gate .login-form { position: relative; z-index: 1; }
.login-gate .login-label { display: block; font-size: 13px; color: #334155; margin: 0 0 8px; font-weight: 700; }
.login-gate .login-field { position: relative; margin: 0 0 16px; }
.login-gate .login-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #b45309; pointer-events: none;
}
.login-gate .login-field input {
  width: 100%; height: 44px; padding: 0 14px 0 42px; border-radius: 10px; font-size: 14px;
  color: #1e293b; background: #fffef7;
  border: 1px solid #fcd34d; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-gate .login-field input.has-eye { padding-right: 42px; }
.login-gate .login-field input.no-ico { padding-left: 14px; }
.login-gate .login-field input::placeholder { color: #94a3b8; }
.login-gate .login-field input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35), 0 0 16px rgba(56, 189, 248, 0.18);
}
.login-gate .login-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: transparent; color: #78716c; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.login-gate .login-eye:hover { color: #1e293b; }
.login-gate .login-eye svg { width: 18px; height: 18px; }
.login-gate .login-tabs {
  display: flex; padding: 4px; margin: 0 0 18px;
  border-radius: 10px; background: #fffbeb;
  border: 1px solid #fde68a; user-select: none;
}
.login-gate .login-tabs button {
  flex: 1; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: #78716c; font-size: 12px; font-weight: 700; cursor: pointer;
}
.login-gate .login-tabs button.on-super,
.login-gate .login-tabs button.on-tenant {
  background: linear-gradient(90deg, #fbbf24, #facc15, #f59e0b);
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.login-gate .login-captcha { display: flex; gap: 8px; }
.login-gate .login-quiz {
  flex: 0 0 38%; min-width: 108px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; cursor: pointer; user-select: none;
  background: #fffbeb; border: 1px solid #fcd34d;
  color: #92400e; font-weight: 800; font-size: 13px; letter-spacing: .06em;
}
.login-gate .login-quiz:hover { background: #fef9c3; }
.login-gate .login-extra {
  display: flex; align-items: center; justify-content: space-between;
  margin: 2px 0 14px; color: #57534e; font-size: 12px;
}
.login-gate .login-extra label { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.login-gate .login-extra input[type="checkbox"] { width: 14px; height: 14px; accent-color: #f59e0b; cursor: pointer; }
.login-gate .login-btn {
  width: 100%; height: 46px; margin-top: 2px; border: 0; border-radius: 10px;
  font-size: 15px; font-weight: 800; letter-spacing: .12em; color: #1e293b; cursor: pointer;
  background: linear-gradient(90deg, #fbbf24, #facc15 50%, #f59e0b);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.login-gate .login-btn:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
}
.login-gate .login-btn:active:not(:disabled) { transform: scale(0.95); }
.login-gate .login-btn::after {
  content: ""; position: absolute; top: 0; left: -45%; width: 38%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-22deg); pointer-events: none; transition: left .45s ease;
}
.login-gate .login-btn:hover:not(:disabled)::after { left: 120%; }
.login-gate .login-btn:disabled { opacity: .55; cursor: default; transform: none; filter: none; }
.login-gate .login-btn .spin {
  width: 14px; height: 14px; border: 2px solid rgba(30, 41, 59, .25); border-top-color: #1e293b;
  border-radius: 50%; animation: spin .8s linear infinite;
}
.login-gate .err { color: #e11d48; font-size: 12px; min-height: 18px; margin-top: 4px; position: relative; z-index: 1; }
.login-gate .login-foot { position: relative; z-index: 1; margin: 22px 0 0; text-align: center; font-size: 12px; color: #78716c; }
