/* Host sign-in — dark glass card over a flowing light field. */

:root {
  --ink: #030712;
  --paper: #ffffff;
  --mist: #a3a3a3;
  --accent: #ff1c7b;
  --accent-2: #ff7e21;
  --line: rgba(255, 255, 255, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.host-gate {
  height: 100dvh;
  overflow: hidden;
  color: var(--paper);
  font-family: Manrope, "Segoe UI", sans-serif;
  background: var(--ink);
  color-scheme: dark;
}

body.host-gate.has-site-nav {
  padding-top: 0;
}

body.host-gate .site-nav,
body.host-gate .site-nav.is-scrolled,
body.host-gate .site-nav:not(.is-scrolled) {
  background: #0b1020 !important;
  background-color: #0b1020 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
}

body.host-gate.has-site-nav .gate {
  box-sizing: border-box;
  height: 100dvh;
  padding-top: 0;
}

body.host-gate.has-site-nav .stage {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  padding-top: 4.25rem;
}

body.host-gate.has-site-nav .panel {
  margin: 0;
  max-height: calc(100dvh - 4.25rem - 132px);
}

@media (min-width: 640px) {
  body.host-gate.has-site-nav .stage {
    padding-top: 5.25rem;
  }

  body.host-gate.has-site-nav .panel {
    max-height: calc(100dvh - 5.25rem - 132px);
  }
}

@media (min-width: 1024px) {
  body.host-gate.has-site-nav .stage {
    padding-top: 6.5rem;
  }

  body.host-gate.has-site-nav .panel {
    max-height: calc(100dvh - 6.5rem - 132px);
  }
}

button,
input {
  font-family: inherit;
}

.gate {
  height: 100dvh;
  min-height: 100dvh;
}

.stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 5vw, 96px);
  padding-inline: clamp(32px, 5vw, 88px);
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(ellipse 55% 48% at 72% 28%, rgba(255, 28, 123, 0.28), transparent 62%),
    radial-gradient(ellipse 70% 50% at 58% 92%, rgba(255, 126, 33, 0.32), transparent 64%),
    radial-gradient(ellipse 40% 36% at 18% 70%, rgba(168, 85, 247, 0.2), transparent 60%),
    var(--ink);
}

.aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.28) 100%);
}

.panel,
.story {
  position: relative;
  z-index: 2;
}

.panel {
  width: min(620px, 48vw);
  flex: 0 1 620px;
  margin: 0;
  padding: 46px 42px 34px;
  max-height: calc(100dvh - 148px);
  overflow: auto;
  border-radius: 26px;
  background: rgba(10, 12, 11, 0.72);
  border: 1px solid rgba(255, 28, 123, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  scrollbar-width: none;
  animation: cardSlide 3.6s cubic-bezier(0.16, 0.84, 0.24, 1) both;
  z-index: 3;
}

.panel::-webkit-scrollbar {
  display: none;
}

.mark {
  margin: 0 0 22px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.view {
  display: none;
}

.view[hidden] {
  display: none !important;
}

.view.is-on {
  display: block;
  animation: cardIn 0.45s ease both;
}

.view h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.lede {
  margin: 0 0 22px;
  max-width: 34ch;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  position: relative;
  display: block;
}

.field input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-password input {
  padding-right: 52px;
}

.field input::placeholder {
  color: rgba(156, 159, 155, 0.92);
  font-weight: 500;
}

.field input:focus {
  border-color: rgba(255, 28, 123, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 28, 123, 0.16);
}

.peek {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  transform: translateY(-50%);
}

.peek:hover,
.peek[aria-pressed="true"] {
  color: var(--paper);
}

.peek svg {
  width: 18px;
  height: 18px;
}

.forgot {
  align-self: flex-end;
  margin: -2px 8px 2px;
  color: var(--mist);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.forgot:hover {
  color: var(--paper);
}

.note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.note.bad {
  color: #ffb4a8;
}

.note.good {
  color: #9be7c4;
}

.submit {
  position: relative;
  overflow: hidden;
  height: 58px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff1c7b 0%, #ef4444 48%, #ff7e21 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 28, 123, 0.35);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}

.submit span {
  position: relative;
  z-index: 1;
}

.submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.45) 48%, transparent 68%);
  transform: translateX(-130%);
  animation: sheen 4.2s ease-in-out infinite;
}

.submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(255, 28, 123, 0.45);
}

.submit:active {
  transform: translateY(0);
}

.submit.is-sending {
  pointer-events: none;
  filter: brightness(1.08);
}

.submit.is-sending span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.submit.is-sending span::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.panel.is-sending {
  animation: cardSend 0.8s ease;
}

.panel.is-shaking {
  animation: cardShake 0.48s ease;
}

.ghost {
  align-self: center;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mist);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ghost:hover {
  color: var(--paper);
}

.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--mist);
  font-size: 0.78rem;
}

.foot-note {
  display: none;
  margin: 0;
}

.foot-note[hidden] {
  display: none !important;
}

.foot-note.is-on {
  display: block;
}

.mode-link,
.foot-contact {
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.foot-contact {
  color: var(--mist);
  font-weight: 600;
  white-space: nowrap;
}

.mode-link:hover,
.foot-contact:hover {
  color: var(--paper);
}

.story {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  display: flex;
  flex: 0 1 460px;
  flex-direction: column;
  justify-content: center;
  width: min(460px, 34vw);
  max-width: 460px;
  height: auto;
  padding: 0;
  animation: wordsFade 3.8s ease 0.55s both;
}

.story-slide {
  display: none;
}

.story-slide.is-on {
  display: block;
  animation: wordsFade 2.8s ease both;
}

.story-title {
  margin: 0 0 16px;
  max-width: 11ch;
  font-family: Outfit, Manrope, sans-serif;
  font-size: clamp(2.7rem, 4.5vw, 4.15rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.story-copy {
  margin: 0;
  max-width: 36ch;
  color: #c4c6c1;
  font-size: 1.02rem;
  line-height: 1.55;
}

.dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(247, 247, 247, 0.38);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.dot.is-on {
  width: 18px;
  background: var(--accent);
}

.stage .page-links {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 0;
  padding: 0 16px;
}

.page-link {
  color: #e5e5e5;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.page-link:hover {
  color: #fff;
}

.page-link.is-active {
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #ff1c7b;
}

.legal a {
  color: inherit;
  text-decoration: none;
}

.legal a:hover {
  color: var(--paper);
}

@keyframes cardSlide {
  from {
    opacity: 0;
    transform: translateX(calc(-50vw - 70%));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cardIn {
  from { opacity: 0.6; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes cardSend {
  0% { transform: scale(1); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28); }
  45% { transform: scale(1.02); box-shadow: 0 28px 60px rgba(255, 28, 123, 0.28); }
  100% { transform: scale(1); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28); }
}

@keyframes cardShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes wordsFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheen {
  0%,
  58% {
    transform: translateX(-130%);
  }
  82%,
  100% {
    transform: translateX(130%);
  }
}

@media (max-width: 1180px) {
  body.host-gate {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .gate {
    display: block;
    height: auto;
    min-height: 100dvh;
    padding: 0;
  }

  .stage {
    width: 100%;
    min-height: 100dvh;
    height: auto;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: 0;
    overflow: hidden;
  }

  .aurora,
  .stage-vignette {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .story {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    order: 2;
    display: block;
    flex: none;
    width: auto;
    max-width: none;
    padding: 4px 22px 28px;
  }

  .story-title {
    max-width: 14ch;
    font-size: 2.05rem;
  }

  .story-copy {
    font-size: 0.92rem;
  }

  .panel,
  body.host-gate.has-site-nav .panel {
    order: 1;
    width: auto;
    margin: 12px 16px 8px;
    max-height: none;
    padding: 28px 22px 22px;
  }

  body.host-gate.has-site-nav .gate,
  body.host-gate.has-site-nav .stage {
    height: auto;
    min-height: 100dvh;
  }

  .panel-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .stage .page-links,
  .stage .gate-links {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    order: 3;
    padding: 4px 16px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .story,
  .view.is-on,
  .story-slide.is-on,
  .submit::after {
    animation: none;
  }
}
