@font-face {
  font-family: "Helvetica Now Var";
  src: url("/ak-assets/ak-font.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
/* AK skin for the original Sub2API AuthLayout. Authentication code is unchanged. */
body:has(#email) {
  background: #e8dfca !important;
  font-family:
    "Helvetica Now Var", "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei",
    sans-serif !important;
  color: #25231f;
}
.min-h-screen:has(> .max-w-md) {
  position: relative !important;
  background: #e8dfca !important;
  padding: 65px 6vw !important;
  min-height: 100svh !important;
  isolation: isolate;
}
.min-h-screen:has(> .max-w-md) > div.absolute:first-child {
  right: auto !important;
  width: 57% !important;
  background:
    linear-gradient(180deg, #25231f63, #25231f00 50%, #18232abb),
    url("/ak-assets/tf2-squad.webp") 47% center/cover no-repeat !important;
  filter: sepia(0.13) saturate(0.8) contrast(1.08);
  border-right: 3px solid #25231f;
}
.min-h-screen:has(> .max-w-md) > div.absolute:nth-child(2) {
  display: none !important;
}
.min-h-screen:has(> .max-w-md):before {
  content: "YOUR NEXT\A MOVE.";
  white-space: pre;
  position: absolute;
  z-index: 2;
  left: 4vw;
  top: 8vh;
  font-size: clamp(58px, 6.9vw, 126px);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.065em;
  color: #f0e6d0;
  text-shadow: 4px 4px 0 #25231f;
  transform: rotate(-3deg);
  pointer-events: none;
}
.min-h-screen:has(> .max-w-md):after {
  content: "AK / FIELD ACCESS — 001\A 把强大模型，编入你的战队。";
  white-space: pre;
  position: absolute;
  bottom: 8vh;
  left: 4vw;
  z-index: 2;
  color: #f0e6d0;
  font-size: 12px;
  line-height: 2.3;
  letter-spacing: 0.06em;
  border-left: 3px solid #bf4936;
  padding-left: 18px;
  pointer-events: none;
}
.min-h-screen:has(> .max-w-md) > .max-w-md {
  margin-left: auto !important;
  margin-right: 0 !important;
  width: 36% !important;
  max-width: 460px !important;
  z-index: 3 !important;
}
.min-h-screen:has(> .max-w-md) > .max-w-md > .mb-8.text-center {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  column-gap: 14px;
  text-align: left;
  margin-bottom: 27px !important;
}
.min-h-screen:has(> .max-w-md) > .max-w-md > .mb-8.text-center > div {
  margin-bottom: 0 !important;
  width: 55px !important;
  height: 55px !important;
  border-radius: 2px !important;
  box-shadow: 3px 3px 0 #25231f !important;
  background: transparent !important;
  transform: rotate(-6deg);
}
.min-h-screen:has(> .max-w-md) h1 {
  background: none !important;
  color: #25231f !important;
  -webkit-text-fill-color: #25231f !important;
  font-family: Impact, "Arial Black", sans-serif !important;
  font-size: 60px !important;
  line-height: 1 !important;
  letter-spacing: -3px !important;
  margin: 0 !important;
  font-style: italic;
  font-weight: 900 !important;
}
.min-h-screen:has(> .max-w-md) > .max-w-md > .mb-8.text-center > p {
  grid-column: 1/-1;
  margin-top: 15px !important;
  color: #7a6d5a !important;
  font-size: 10px !important;
  line-height: 1.7 !important;
  letter-spacing: 0.06em;
}
.min-h-screen:has(> .max-w-md) .card-glass {
  background: #f4eddb !important;
  border: 2px solid #25231f !important;
  box-shadow: 7px 7px 0 #25231f !important;
  border-radius: 3px !important;
  backdrop-filter: none !important;
  padding: 31px !important;
}
.min-h-screen:has(> .max-w-md) .card-glass > .space-y-6 > .text-center {
  text-align: left !important;
  margin-bottom: 28px;
}
.min-h-screen:has(> .max-w-md) h2 {
  color: #25231f !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  font-size: 29px !important;
}
.min-h-screen:has(> .max-w-md) .card-glass p {
  color: #8a7961 !important;
  font-size: 11px !important;
}
.min-h-screen:has(> .max-w-md) label {
  color: #5c5142 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}
.min-h-screen:has(> .max-w-md) input.input {
  border: 1.5px solid #8f826d !important;
  border-radius: 2px !important;
  background: #faf5e9 !important;
  color: #25231f !important;
  min-height: 46px !important;
  font-size: 12px !important;
  box-shadow: none !important;
}
.min-h-screen:has(> .max-w-md) input.input:focus {
  border-color: #b84531 !important;
  outline: 2px solid #ba493633 !important;
  outline-offset: 2px !important;
}
.min-h-screen:has(> .max-w-md) input::placeholder {
  color: #a39681 !important;
}
.min-h-screen:has(> .max-w-md) form > .btn-primary {
  background: #ba4936 !important;
  border: 1.5px solid #25231f !important;
  border-radius: 2px !important;
  box-shadow: 3px 3px 0 #25231f !important;
  min-height: 47px !important;
  font-weight: 700 !important;
  color: #f5ebd7 !important;
  transition:
    transform 0.15s,
    box-shadow 0.15s !important;
}
.min-h-screen:has(> .max-w-md) form > .btn-primary:hover:not(:disabled) {
  background: #a83d2b !important;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #25231f !important;
}
.min-h-screen:has(> .max-w-md) form > .btn-primary:focus-visible {
  outline: 3px solid #426476 !important;
  outline-offset: 4px !important;
}
.min-h-screen:has(> .max-w-md) .text-primary-600 {
  color: #b64431 !important;
}
.min-h-screen:has(> .max-w-md) > .max-w-md > .mt-8 {
  color: #8b7c66 !important;
  font-size: 9px !important;
  margin-top: 27px !important;
  letter-spacing: 0.03em;
}
.min-h-screen:has(> .max-w-md) .mt-6 p {
  font-size: 11px !important;
}
.min-h-screen:has(> .max-w-md) svg {
  color: currentColor;
}
@media (max-width: 900px) {
  .min-h-screen:has(> .max-w-md) {
    padding: 56px 4vw !important;
  }
  .min-h-screen:has(> .max-w-md) > div.absolute:first-child {
    width: 49% !important;
  }
  .min-h-screen:has(> .max-w-md) > .max-w-md {
    width: 44% !important;
  }
  .min-h-screen:has(> .max-w-md):before {
    left: 3vw;
    top: 10vh;
    font-size: 6.5vw;
  }
  .min-h-screen:has(> .max-w-md):after {
    left: 3vw;
    font-size: 10px;
  }
  .min-h-screen:has(> .max-w-md) .card-glass {
    padding: 23px !important;
  }
}
@media (max-width: 650px) {
  .min-h-screen:has(> .max-w-md) {
    padding: 225px 7vw 55px !important;
    display: block !important;
    overflow: visible !important;
  }
  .min-h-screen:has(> .max-w-md) > div.absolute:first-child {
    width: 100% !important;
    height: 310px !important;
    border-right: 0;
    border-bottom: 3px solid #25231f;
    background-position: center 30% !important;
  }
  .min-h-screen:has(> .max-w-md):before {
    top: 37px;
    left: 7vw;
    font-size: 55px;
    line-height: 0.95;
    text-shadow: 3px 3px 0 #25231f;
  }
  .min-h-screen:has(> .max-w-md):after {
    display: none;
  }
  .min-h-screen:has(> .max-w-md) > .max-w-md {
    width: 100% !important;
    margin: 0 auto !important;
    max-width: 450px !important;
    background: #e8dfca;
    padding: 25px 21px 23px;
    border: 2px solid #25231f;
    box-shadow: 5px 5px 0 #25231f;
  }
  .min-h-screen:has(> .max-w-md) .card-glass {
    padding: 24px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #25231f55 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .min-h-screen:has(> .max-w-md) > .max-w-md > .mb-8.text-center {
    margin-bottom: 23px !important;
    grid-template-columns: 47px 1fr;
    gap: 10px;
  }
  .min-h-screen:has(> .max-w-md) > .max-w-md > .mb-8.text-center > div {
    width: 44px !important;
    height: 44px !important;
  }
  .min-h-screen:has(> .max-w-md) h1 {
    font-size: 48px !important;
  }
  .min-h-screen:has(> .max-w-md) > .max-w-md > .mb-8.text-center > p {
    font-size: 9px !important;
    margin-top: 10px !important;
  }
  .min-h-screen:has(> .max-w-md) h2 {
    font-size: 26px !important;
  }
  .min-h-screen:has(> .max-w-md) .card-glass > .space-y-6 > .text-center {
    margin-bottom: 24px;
  }
  .min-h-screen:has(> .max-w-md) input.input {
    font-size: 16px !important;
  }
  .min-h-screen:has(> .max-w-md) > .max-w-md > .mt-8 {
    font-size: 8px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .min-h-screen:has(> .max-w-md) * {
    transition: none !important;
  }
}

.ak-auth-home {
  position: absolute;
  left: 4vw;
  top: 25px;
  z-index: 25;
  color: #f0e6d0 !important;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-shadow: 1px 1px #25231f;
}
.ak-auth-home:hover {
  text-decoration: underline;
}
.ak-auth-home:focus-visible {
  outline: 2px solid #deb750;
  outline-offset: 6px;
}
.min-h-screen:has(> .max-w-md):before {
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: clamp(70px, 8vw, 136px);
}
@media (max-width: 900px) {
  .min-h-screen:has(> .max-w-md):before {
    font-size: 7.8vw;
  }
}
@media (max-width: 650px) {
  .ak-auth-home {
    left: 7vw;
    top: 23px;
  }
  .min-h-screen:has(> .max-w-md):before {
    top: 63px;
    font-size: 65px;
  }
}

.ak-auth-home {
  display: none;
}
body:has(.min-h-screen > .max-w-md #email) .ak-auth-home {
  display: block;
}
