html.cc-auth-signin {
  color-scheme: light;
}

html.cc-auth-signin body {
  background:
    radial-gradient(circle at 12% 18%, rgba(93, 135, 255, 0.20), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(126, 87, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #f7f9ff 0%, #eef4ff 48%, #f8f6ff 100%);
}

html.cc-auth-signin .h-svh.max-w-none {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

html.cc-auth-signin .h-svh.max-w-none::before,
html.cc-auth-signin .h-svh.max-w-none::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
  filter: blur(2px);
  pointer-events: none;
}

html.cc-auth-signin .h-svh.max-w-none::before {
  width: 34rem;
  height: 34rem;
  left: -12rem;
  bottom: -15rem;
  background: linear-gradient(135deg, rgba(74, 122, 255, 0.24), rgba(127, 84, 255, 0.13));
}

html.cc-auth-signin .h-svh.max-w-none::after {
  width: 25rem;
  height: 25rem;
  right: -8rem;
  top: -10rem;
  background: linear-gradient(135deg, rgba(95, 211, 255, 0.18), rgba(114, 90, 255, 0.14));
}

html.cc-auth-signin .h-svh.max-w-none > a {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 30px rgba(50, 72, 120, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html.cc-auth-signin .h-svh.max-w-none > a img {
  box-shadow: 0 4px 14px rgba(70, 105, 210, 0.20);
}

html.cc-auth-signin .h-svh.max-w-none > .container {
  position: relative;
  justify-content: flex-end;
  width: 100%;
  max-width: none;
  padding-right: clamp(3rem, 9vw, 10rem);
  padding-left: clamp(3rem, 8vw, 9rem);
}

html.cc-auth-signin .h-svh.max-w-none > .container::before {
  position: absolute;
  top: 38%;
  left: clamp(3rem, 8vw, 9rem);
  width: min(42vw, 42rem);
  content: "一个接口，连接多种 AI 能力";
  color: #152346;
  font-size: clamp(2.4rem, 4.2vw, 4.8rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

html.cc-auth-signin .h-svh.max-w-none > .container::after {
  position: absolute;
  top: calc(38% + clamp(7rem, 10vw, 10rem));
  left: clamp(3rem, 8vw, 9rem);
  width: min(39vw, 36rem);
  content: "兼容 OpenAI API 生态，为开发、创作与智能应用提供稳定透明的模型服务。";
  color: #617092;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.8;
}

html.cc-auth-signin .h-svh.max-w-none > .container > div {
  position: relative;
  width: min(100%, 29rem) !important;
  margin-right: 0;
  margin-left: auto;
  padding: clamp(1.75rem, 3vw, 2.6rem) !important;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 28px 70px rgba(43, 66, 120, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(26px) saturate(135%);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
}

html.cc-auth-signin .h-svh.max-w-none > .container > div::before {
  position: absolute;
  top: 0;
  right: 2rem;
  left: 2rem;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #4f7cff, #7b5cff, #42bff5);
  content: "";
}

html.cc-auth-signin .h-svh.max-w-none h2 {
  color: #17213b;
  font-size: 2rem;
  letter-spacing: -0.035em;
}

html.cc-auth-signin .h-svh.max-w-none form label {
  color: #36425f;
  font-weight: 600;
}

html.cc-auth-signin .h-svh.max-w-none form input {
  min-height: 2.85rem;
  border-color: rgba(120, 138, 178, 0.24);
  border-radius: 0.8rem;
  background: rgba(249, 251, 255, 0.88);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

html.cc-auth-signin .h-svh.max-w-none form input:focus {
  border-color: rgba(79, 124, 255, 0.62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.10);
}

html.cc-auth-signin .h-svh.max-w-none form button[type="submit"] {
  min-height: 2.9rem;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(100deg, #416ff2 0%, #6b58ec 58%, #4b8ff3 100%);
  box-shadow: 0 13px 28px rgba(74, 94, 218, 0.26);
  font-weight: 650;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

html.cc-auth-signin .h-svh.max-w-none form button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(74, 94, 218, 0.32);
  filter: saturate(1.08);
}

html.cc-auth-signin .h-svh.max-w-none a {
  text-decoration-color: rgba(79, 124, 255, 0.45);
}

html.cc-auth-signin .cf-turnstile {
  display: flex;
  justify-content: center;
}

html.dark.cc-auth-signin {
  color-scheme: dark;
}

html.dark.cc-auth-signin body {
  background:
    radial-gradient(circle at 12% 18%, rgba(72, 99, 210, 0.23), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(113, 74, 205, 0.19), transparent 30%),
    linear-gradient(135deg, #0b1020 0%, #111a2f 48%, #161126 100%);
}

html.dark.cc-auth-signin .h-svh.max-w-none > a,
html.dark.cc-auth-signin .h-svh.max-w-none > .container > div {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(17, 24, 43, 0.76);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

html.dark.cc-auth-signin .h-svh.max-w-none > .container::before,
html.dark.cc-auth-signin .h-svh.max-w-none h2 {
  color: #f3f6ff;
}

html.dark.cc-auth-signin .h-svh.max-w-none > .container::after {
  color: #a8b2cc;
}

html.dark.cc-auth-signin .h-svh.max-w-none form label {
  color: #d1d8ea;
}

html.dark.cc-auth-signin .h-svh.max-w-none form input {
  border-color: rgba(183, 196, 229, 0.15);
  background: rgba(11, 17, 31, 0.74);
}

@media (max-width: 1024px) {
  html.cc-auth-signin .h-svh.max-w-none > .container {
    justify-content: center;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  html.cc-auth-signin .h-svh.max-w-none > .container::before,
  html.cc-auth-signin .h-svh.max-w-none > .container::after {
    display: none;
  }

  html.cc-auth-signin .h-svh.max-w-none > .container > div {
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  html.cc-auth-signin .h-svh.max-w-none > a {
    top: 1rem;
    left: 1rem;
  }

  html.cc-auth-signin .h-svh.max-w-none > .container {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  html.cc-auth-signin .h-svh.max-w-none > .container > div {
    padding: 1.5rem !important;
    border-radius: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.cc-auth-signin *,
  html.cc-auth-signin *::before,
  html.cc-auth-signin *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
