html.auth-pending,
html.auth-pending body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #07131c;
}

html.auth-pending body > :not(#gamecenter-auth-root) {
  pointer-events: none !important;
  user-select: none !important;
  filter: blur(8px) saturate(0.82) brightness(0.56);
  transform: scale(1.018);
  transform-origin: center;
  transition: filter 420ms ease, transform 600ms ease;
}

#gamecenter-auth-root {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 28px 18px;
  color: #eef5fb;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 16% 11%, rgba(42, 181, 235, 0.16), transparent 31%),
    radial-gradient(circle at 84% 83%, rgba(23, 80, 145, 0.2), transparent 39%),
    linear-gradient(125deg, rgba(2, 8, 14, 0.35), rgba(2, 8, 14, 0.62));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#gamecenter-auth-root::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(147, 204, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 204, 238, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.gc-auth-atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gc-auth-orbit {
  position: absolute;
  width: min(720px, 78vw);
  aspect-ratio: 1;
  border: 1px solid rgba(119, 219, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(61, 181, 229, 0.06);
}

.gc-auth-orbit-one {
  top: -48%;
  right: -11%;
}

.gc-auth-orbit-two {
  bottom: -58%;
  left: -16%;
  width: min(880px, 94vw);
}

.gc-auth-flightpath {
  position: absolute;
  top: 13%;
  right: 9%;
  width: 31vw;
  min-width: 260px;
  height: 42vh;
  border-top: 1px solid rgba(135, 222, 255, 0.2);
  border-right: 1px solid rgba(135, 222, 255, 0.2);
  border-radius: 0 100% 0 0;
  transform: rotate(-13deg);
  opacity: 0.65;
}

.gc-auth-flightpath::after {
  position: absolute;
  top: -7px;
  left: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  content: "";
  background: #85e2ff;
  box-shadow: 0 0 24px #57caf3;
}

.gc-auth-card {
  position: relative;
  width: min(510px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(163, 220, 248, 0.24);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(13, 28, 42, 0.94), rgba(5, 13, 22, 0.9));
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(101, 206, 249, 0.04),
    inset 0 1px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(28px) saturate(1.18);
  -webkit-backdrop-filter: blur(28px) saturate(1.18);
  animation: gc-auth-arrive 560ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.gc-auth-card::before {
  display: block;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #167db8, #8be6ff 52%, #2d79c5);
  box-shadow: 0 0 22px rgba(108, 218, 255, 0.48);
}

.gc-auth-content {
  padding: 36px 40px 30px;
}

.gc-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.gc-auth-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(114, 214, 255, 0.36);
  border-radius: 15px;
  color: #83dcff;
  font-size: 24px;
  background: linear-gradient(145deg, rgba(60, 161, 218, 0.2), rgba(17, 54, 88, 0.22));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.gc-auth-brand small,
.gc-auth-heading small {
  display: block;
  color: #6e899c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.gc-auth-brand strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  letter-spacing: 0.05em;
}

.gc-auth-heading h1 {
  margin: 7px 0 8px;
  font-size: clamp(27px, 6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.gc-auth-heading p {
  margin: 0 0 28px;
  color: #91a7b7;
  font-size: 14px;
  line-height: 1.65;
}

.gc-auth-label {
  display: block;
  margin: 0 0 9px;
  color: #9fb5c4;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.gc-auth-password-field {
  position: relative;
}

.gc-auth-password {
  width: 100%;
  box-sizing: border-box;
  height: 52px;
  padding: 0 92px 0 17px;
  border: 1px solid rgba(145, 184, 208, 0.2);
  border-radius: 12px;
  outline: none;
  color: #effaff;
  font: inherit;
  font-size: 20px;
  letter-spacing: 0.18em;
  background: rgba(1, 7, 12, 0.62);
  transition: 160ms ease;
}

.gc-auth-password::placeholder {
  color: #506a7d;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.gc-auth-password:focus {
  border-color: rgba(91, 202, 249, 0.68);
  box-shadow: 0 0 0 3px rgba(42, 157, 211, 0.13);
}

.gc-auth-visibility {
  position: absolute;
  top: 50%;
  right: 8px;
  display: flex;
  height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: #8fabbc;
  font: 650 12px/1 Inter, ui-sans-serif, sans-serif;
  background: rgba(100, 182, 220, 0.08);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 150ms ease, background 150ms ease;
}

.gc-auth-visibility:hover,
.gc-auth-visibility[aria-pressed="true"] {
  color: #dff6ff;
  background: rgba(100, 202, 244, 0.15);
}

.gc-auth-eye {
  position: relative;
  width: 16px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50% / 60%;
}

.gc-auth-eye::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: currentColor;
  transform: translate(-50%, -50%);
}

.gc-auth-error {
  min-height: 20px;
  margin: 9px 1px 5px;
  color: #ff9a8e;
  font-size: 12px;
}

.gc-auth-submit {
  display: flex;
  width: 100%;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  color: #031019;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #77dbff, #39a8df);
  box-shadow: 0 13px 30px rgba(35, 143, 199, 0.25);
  cursor: pointer;
  transition: 160ms ease;
}

.gc-auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.gc-auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.gc-auth-trust {
  display: flex;
  justify-content: space-between;
  margin: 18px 2px 0;
  color: #617d90;
  font-size: 11px;
  line-height: 1.55;
}

.gc-auth-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gc-auth-trust i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62dbb0;
  box-shadow: 0 0 10px rgba(98, 219, 176, 0.7);
}

@keyframes gc-auth-arrive {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gc-session-chip {
  position: fixed;
  z-index: 2147483000;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #cfe1eb;
  font: 600 11px/1.2 Inter, ui-sans-serif, sans-serif;
  background: rgba(7, 15, 23, 0.76);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.gc-session-chip button {
  padding: 4px 7px;
  border: 0;
  border-radius: 999px;
  color: #8fb0c2;
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

@media (max-width: 520px) {
  .gc-auth-content {
    padding: 28px 20px 24px;
  }

  .gc-auth-trust {
    align-items: center;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gc-auth-card {
    animation: none;
  }
}
