.snaqian-auth-story {
  display: none;
}

html[data-snaqian-auth] {
  background: #05080a;
  color-scheme: dark;
}

html[data-snaqian-auth] body {
  min-width: 0;
  overflow-x: hidden;
  background: #05080a;
}

html[data-snaqian-auth] .snaqian-auth-story {
  position: fixed;
  z-index: 20;
  inset: 0 600px 0 0;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  pointer-events: none;
}

html[data-snaqian-auth] .snaqian-auth-home,
html[data-snaqian-auth] .snaqian-auth-status {
  pointer-events: auto;
}

.snaqian-auth-home {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 11px;
  color: #f4f8f9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.snaqian-auth-home img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  object-fit: cover;
}

.snaqian-auth-copy {
  width: min(100%, 670px);
  margin: auto 0;
  padding-bottom: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.snaqian-auth-kicker {
  display: block;
  margin-bottom: 16px;
  color: #4ed6e8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.snaqian-auth-copy h2 {
  max-width: 650px;
  margin: 0 0 20px;
  color: #f4f8f9;
  font-size: 58px;
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
}

.snaqian-auth-copy p {
  margin: 0;
  color: #b9c6cc;
  font-size: 18px;
  line-height: 1.75;
}

.snaqian-auth-endpoint {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
  padding: 12px 14px;
  border: 1px solid rgba(78, 214, 232, 0.24);
  border-radius: 7px;
  background: rgba(4, 10, 13, 0.62);
  color: #d8e5e9;
  backdrop-filter: blur(12px);
}

.snaqian-auth-endpoint span {
  color: #f2b84b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.snaqian-auth-endpoint code {
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snaqian-auth-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  color: #d8e3e7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.snaqian-auth-status:hover {
  color: #49d7a3;
}

.snaqian-auth-status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #49d7a3;
  box-shadow: 0 0 0 5px rgba(73, 215, 163, 0.12);
}

html[data-snaqian-auth] .snaqian-auth-root {
  min-height: 100svh !important;
  justify-content: flex-end !important;
  overflow: visible !important;
  padding: 0 !important;
  isolation: isolate;
  background: #05080a !important;
}

html[data-snaqian-auth] .snaqian-auth-root > .absolute.inset-0:first-child {
  position: fixed !important;
  background-image:
    linear-gradient(90deg, rgba(3, 7, 9, 0.28) 0%, rgba(3, 7, 9, 0.46) 48%, rgba(3, 7, 9, 0.94) 100%),
    url("/brand-assets/home-hero.webp") !important;
  background-position: center !important;
  background-size: cover !important;
}

html[data-snaqian-auth] .snaqian-auth-root > .pointer-events-none {
  display: none !important;
}

html[data-snaqian-auth] .snaqian-auth-panel {
  width: min(100%, 600px) !important;
  max-width: 600px !important;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  padding: 46px 64px;
  border-left: 1px solid rgba(104, 132, 143, 0.3);
  background: rgba(6, 11, 14, 0.92);
  box-shadow: -28px 0 70px rgba(0, 0, 0, 0.34);
  color: #edf4f6;
  backdrop-filter: blur(18px);
}

html[data-snaqian-auth] .snaqian-auth-panel > .mb-8.text-center {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 2px 13px;
  margin-bottom: 24px !important;
  text-align: left;
}

html[data-snaqian-auth] .snaqian-auth-panel > .mb-8.text-center > div:first-child {
  width: 48px !important;
  height: 48px !important;
  grid-row: 1 / 3;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px !important;
  box-shadow: 0 12px 34px rgba(73, 215, 163, 0.14) !important;
}

html[data-snaqian-auth] .snaqian-auth-panel > .mb-8.text-center h1 {
  align-self: end;
  margin: 0 !important;
  color: #f4f8f9 !important;
  font-size: 21px !important;
  line-height: 1.25;
  letter-spacing: 0;
}

html[data-snaqian-auth] .snaqian-auth-panel > .mb-8.text-center p {
  align-self: start;
  margin: 0 !important;
  color: #81929b !important;
  font-size: 12px !important;
  line-height: 1.45;
}

html[data-snaqian-auth] .snaqian-auth-panel .card-glass {
  border: 1px solid #24333b !important;
  border-radius: 8px !important;
  background: rgba(11, 18, 22, 0.86) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28) !important;
  color: #edf4f6;
}

html[data-snaqian-auth] .snaqian-auth-panel .card-glass h2 {
  color: #f4f8f9 !important;
  letter-spacing: 0;
}

html[data-snaqian-auth] .snaqian-auth-panel .card-glass h2 + p {
  color: #8fa0a8 !important;
}

html[data-snaqian-auth] .snaqian-auth-panel .input-label {
  color: #c6d1d6 !important;
}

html[data-snaqian-auth] .snaqian-auth-panel .input-hint,
html[data-snaqian-auth] .snaqian-auth-panel form p {
  color: #81929b;
}

html[data-snaqian-auth] .snaqian-auth-panel .input {
  min-height: 50px;
  border-color: #293941 !important;
  border-radius: 6px !important;
  background: #080e12 !important;
  color: #eef5f6 !important;
  box-shadow: none !important;
}

html[data-snaqian-auth] .snaqian-auth-panel .input::placeholder {
  color: #667780 !important;
}

html[data-snaqian-auth] .snaqian-auth-panel .input:focus {
  border-color: #49d7a3 !important;
  box-shadow: 0 0 0 3px rgba(73, 215, 163, 0.12) !important;
}

html[data-snaqian-auth] .snaqian-auth-panel .input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

html[data-snaqian-auth] .snaqian-auth-panel input:-webkit-autofill,
html[data-snaqian-auth] .snaqian-auth-panel input:-webkit-autofill:hover,
html[data-snaqian-auth] .snaqian-auth-panel input:-webkit-autofill:focus {
  -webkit-text-fill-color: #eef5f6;
  box-shadow: 0 0 0 1000px #080e12 inset !important;
  transition: background-color 9999s ease-out;
}

html[data-snaqian-auth] .snaqian-auth-panel .btn-primary {
  min-height: 50px;
  border: 1px solid #49d7a3 !important;
  border-radius: 6px !important;
  background: #49d7a3 !important;
  color: #04110c !important;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(73, 215, 163, 0.16) !important;
}

html[data-snaqian-auth] .snaqian-auth-panel .btn-primary:hover:not(:disabled) {
  background: #5ce2b1 !important;
}

html[data-snaqian-auth] .snaqian-auth-panel .btn-secondary {
  border-color: #33464f !important;
  border-radius: 6px !important;
  background: #0a1216 !important;
  color: #d7e1e5 !important;
}

html[data-snaqian-auth] .snaqian-auth-panel form .flex.items-start.gap-3 {
  padding: 12px;
  border: 1px solid rgba(73, 215, 163, 0.2);
  border-radius: 6px;
  background: rgba(73, 215, 163, 0.06);
  color: #c5d2d7;
}

html[data-snaqian-auth] .snaqian-auth-panel form .flex.items-start.gap-3 button {
  border: 1px solid #38535a;
  border-radius: 5px !important;
  background: #102126 !important;
  color: #9eeed0 !important;
}

html[data-snaqian-auth] .snaqian-auth-panel a {
  color: #55ddb0 !important;
}

html[data-snaqian-auth] [data-snaqian-turnstile-retry] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(242, 184, 75, 0.34);
  border-radius: 6px;
  background: rgba(242, 184, 75, 0.08);
  color: #d8e3e7;
  font-size: 13px;
  line-height: 1.5;
}

html[data-snaqian-auth] [data-snaqian-turnstile-retry] button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #4f6872;
  border-radius: 5px;
  background: #102126;
  color: #9eeed0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

html[data-snaqian-auth] [data-snaqian-turnstile-retry] button:hover {
  border-color: #49d7a3;
  color: #c8f9e7;
}

html[data-snaqian-auth] .snaqian-auth-panel > .mt-6,
html[data-snaqian-auth] .snaqian-auth-panel > .mt-8 {
  color: #71828a !important;
}

@media (max-width: 1180px) {
  html[data-snaqian-auth] .snaqian-auth-story {
    right: 560px;
    padding: 42px;
  }

  .snaqian-auth-copy h2 {
    font-size: 46px;
  }

  html[data-snaqian-auth] .snaqian-auth-panel {
    width: min(100%, 560px) !important;
    max-width: 560px !important;
    padding-inline: 52px;
  }
}

@media (max-width: 940px) {
  html[data-snaqian-auth] .snaqian-auth-story {
    display: none;
  }

  html[data-snaqian-auth] .snaqian-auth-root {
    justify-content: center !important;
    padding: 28px !important;
  }

  html[data-snaqian-auth] .snaqian-auth-root > .absolute.inset-0:first-child {
    background-image:
      linear-gradient(rgba(3, 7, 9, 0.68), rgba(3, 7, 9, 0.82)),
      url("/brand-assets/home-hero.webp") !important;
  }

  html[data-snaqian-auth] .snaqian-auth-panel {
    width: min(100%, 560px) !important;
    min-height: auto;
    margin: 0;
    border: 1px solid rgba(104, 132, 143, 0.3);
    border-radius: 8px;
    background: rgba(6, 11, 14, 0.94);
  }
}

@media (max-width: 600px) {
  html[data-snaqian-auth] .snaqian-auth-root {
    align-items: stretch !important;
    padding: 0 !important;
  }

  html[data-snaqian-auth] .snaqian-auth-panel {
    width: 100% !important;
    max-width: none !important;
    min-height: 100svh;
    justify-content: flex-start;
    padding: 30px 20px 36px;
    border: 0;
    border-radius: 0;
    background: rgba(6, 11, 14, 0.95);
    box-shadow: none;
  }

  html[data-snaqian-auth] .snaqian-auth-panel .card-glass {
    padding: 24px 20px !important;
  }

  html[data-snaqian-auth] .snaqian-auth-panel > .mb-8.text-center {
    margin-bottom: 22px !important;
  }

  html[data-snaqian-auth] [data-snaqian-turnstile-retry] {
    align-items: flex-start;
    flex-direction: column;
  }
}
