@charset "UTF-8";

/* WINS presentation overlay for New API by QuantumNous.
   Original application source, copyright notices and authentication behavior
   remain unchanged. Only the deployed auth layout receives these styles. */

#root > div.relative.grid.h-svh.max-w-none {
  --background: #f8f8f8;
  --foreground: #181818;
  --card: #f8f8f8;
  --card-foreground: #181818;
  --primary: #181818;
  --primary-foreground: #ffffff;
  --secondary: #eeeeee;
  --secondary-foreground: #181818;
  --muted: #eeeeee;
  --muted-foreground: #737373;
  --accent: #eeeeee;
  --accent-foreground: #181818;
  --border: #dddddd;
  --input: #b5b5b5;
  --ring: #181818;
  --destructive: #181818;
  --radius: 0;
  --wins-auth-gutter: max(56px, calc((100% - 1328px) / 2));
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 100svh;
  padding-top: 108px;
  background: var(--background);
  color: var(--foreground);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#root > div.relative.grid.h-svh.max-w-none::before {
  content: "";
  position: absolute;
  top: 107px;
  left: var(--wins-auth-gutter);
  right: var(--wins-auth-gutter);
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}

#root > div.relative.grid.h-svh.max-w-none > a[href="/"] {
  position: absolute;
  top: 0;
  left: var(--wins-auth-gutter);
  display: inline-flex;
  align-items: center;
  gap: 13px;
  height: 108px;
  padding: 0;
  color: var(--foreground);
  text-decoration: none;
}

#root > div.relative.grid.h-svh.max-w-none > a[href="/"] > div {
  width: 31px;
  height: 31px;
}

#root > div.relative.grid.h-svh.max-w-none > a[href="/"] img {
  width: 31px;
  height: 31px;
  border-radius: 0;
  object-fit: contain;
}

#root > div.relative.grid.h-svh.max-w-none > a[href="/"] h1 {
  margin: 0;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
}

#root > div.relative.grid.h-svh.max-w-none > div.container {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(64px, 10vw, 160px);
  width: min(calc(100% - 112px), 1328px);
  max-width: none;
  min-height: calc(100svh - 108px);
  margin: 0 auto;
  padding: 76px 0 92px;
}

#root > div.relative.grid.h-svh.max-w-none > div.container::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  justify-self: center;
  background: url("./wins-wave.svg") center / contain no-repeat;
  pointer-events: none;
  animation: wins-auth-drift 12s ease-in-out infinite;
}

#root > div.relative.grid.h-svh.max-w-none > div.container > div.mx-auto {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 0;
}

#root > div.relative.grid.h-svh.max-w-none > div.container > div.mx-auto > div.w-full {
  width: 100%;
}

#root > div.relative.grid.h-svh.max-w-none h2 {
  margin: 0 0 20px;
  color: var(--foreground);
  font-family: inherit;
  font-size: clamp(34px, 3.1vw, 46px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.065em;
  text-align: left;
}

#root > div.relative.grid.h-svh.max-w-none p {
  line-height: 1.7;
}

#root > div.relative.grid.h-svh.max-w-none a {
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

#root > div.relative.grid.h-svh.max-w-none a:hover {
  color: #555555;
}

#root > div.relative.grid.h-svh.max-w-none form {
  gap: 26px;
}

#root > div.relative.grid.h-svh.max-w-none [data-slot="form-item"] {
  gap: 8px;
}

#root > div.relative.grid.h-svh.max-w-none [data-slot="form-label"] {
  color: var(--foreground);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

#root > div.relative.grid.h-svh.max-w-none input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--input);
  border-radius: 0;
  padding: 10px 2px;
  background: transparent;
  color: var(--foreground);
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

#root > div.relative.grid.h-svh.max-w-none input::placeholder {
  color: #858585;
  opacity: 1;
}

#root > div.relative.grid.h-svh.max-w-none input[name="password"],
#root > div.relative.grid.h-svh.max-w-none input[name="confirmPassword"] {
  padding-right: 42px;
}

#root > div.relative.grid.h-svh.max-w-none input:focus-visible {
  border-bottom: 2px solid var(--foreground);
  outline: 2px solid var(--foreground);
  outline-offset: 4px;
  box-shadow: none;
}

#root > div.relative.grid.h-svh.max-w-none input[aria-invalid="true"] {
  border-bottom: 2px solid var(--destructive);
  background: #eeeeee;
}

#root > div.relative.grid.h-svh.max-w-none [data-slot="form-message"] {
  color: var(--destructive);
  border-left: 2px solid var(--destructive);
  padding-left: 10px;
  font-size: 12px;
  font-weight: 600;
}

#root > div.relative.grid.h-svh.max-w-none [data-slot="button"] {
  border-radius: 0;
  font-family: inherit;
}

#root > div.relative.grid.h-svh.max-w-none button[type="submit"] {
  min-height: 54px;
  margin-top: 12px;
  border: 1px solid var(--primary);
  padding: 14px 24px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}

#root > div.relative.grid.h-svh.max-w-none button[type="submit"]:hover:not(:disabled) {
  background: #363636;
  border-color: #363636;
}

#root > div.relative.grid.h-svh.max-w-none button[aria-label="Toggle password visibility"] {
  width: 36px;
  height: 36px;
  color: #555555;
}

#root > div.relative.grid.h-svh.max-w-none button:focus-visible,
#root > div.relative.grid.h-svh.max-w-none a:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 5px;
  box-shadow: none;
}

#root > div.relative.grid.h-svh.max-w-none input:disabled,
#root > div.relative.grid.h-svh.max-w-none button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Keep legal links and account notices visible; this is only the optional
   product attribution line explicitly omitted from the deployed footer. */
footer span:has(> a[href="https://github.com/QuantumNous/new-api"]) {
  display: none;
}

@keyframes wins-auth-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1100px) {
  #root > div.relative.grid.h-svh.max-w-none {
    --wins-auth-gutter: 36px;
  }

  #root > div.relative.grid.h-svh.max-w-none > div.container {
    width: calc(100% - 72px);
    gap: 60px;
  }
}

@media (max-width: 900px) {
  #root > div.relative.grid.h-svh.max-w-none > div.container {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
    gap: 0;
  }

  #root > div.relative.grid.h-svh.max-w-none > div.container::after {
    display: none;
  }
}

@media (max-width: 760px) {
  #root > div.relative.grid.h-svh.max-w-none {
    --wins-auth-gutter: 22px;
    padding-top: 82px;
  }

  #root > div.relative.grid.h-svh.max-w-none::before {
    top: 81px;
  }

  #root > div.relative.grid.h-svh.max-w-none > a[href="/"] {
    gap: 9px;
    height: 82px;
  }

  #root > div.relative.grid.h-svh.max-w-none > a[href="/"] > div,
  #root > div.relative.grid.h-svh.max-w-none > a[href="/"] img {
    width: 27px;
    height: 27px;
  }

  #root > div.relative.grid.h-svh.max-w-none > a[href="/"] h1 {
    font-size: 20px;
  }

  #root > div.relative.grid.h-svh.max-w-none > div.container {
    width: calc(100% - 44px);
    min-height: calc(100svh - 82px);
    padding: 54px 0 72px;
  }

  #root > div.relative.grid.h-svh.max-w-none h2 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #root > div.relative.grid.h-svh.max-w-none > div.container::after {
    animation: none;
  }
}
