:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, sans-serif;
  background: #28091E;
  color: #f7a8f3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 1rem;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: #28091e;
}

.auth-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #28091e;
}

.auth-cloud {
  --cloud-color: #ad0000;
  position: absolute;
  display: block;
  width: 210px;
  height: 62px;
  border-radius: 48% 52% 42% 46% / 65% 68% 35% 38%;
  background: var(--cloud-color);
  filter:
    blur(0.65px)
    drop-shadow(0 0 10px var(--cloud-color))
    drop-shadow(0 0 24px var(--cloud-color));
  opacity: 1;
  backface-visibility: hidden;
}

.auth-cloud::before,
.auth-cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.auth-cloud::before {
  width: 44%;
  height: 142%;
  left: 15%;
  bottom: 8%;
}

.auth-cloud::after {
  width: 37%;
  height: 116%;
  right: 13%;
  bottom: 12%;
}

.auth-cloud--haven {
  --cloud-color: #ad0000;
  --cloud-duration: 58s;
  --cloud-delay: -37s;
  --cloud-rotation: -1deg;
  top: 8%;
  left: -42px;
  width: 220px;
  height: 66px;
  transform: rotate(-1deg);
}

.auth-cloud--haven::before {
  width: 42%;
  height: 154%;
  left: 18%;
}

.auth-cloud--haven-small {
  --cloud-color: #ad0000;
  --cloud-duration: 46s;
  --cloud-delay: -12s;
  --cloud-rotation: 1.25deg;
  top: 35%;
  right: -30px;
  width: 154px;
  height: 48px;
  border-radius: 58% 42% 48% 52% / 62% 76% 24% 38%;
  transform: rotate(1.25deg);
}

.auth-cloud--haven-small::before {
  width: 35%;
  height: 122%;
  left: 14%;
}

.auth-cloud--haven-small::after {
  width: 43%;
  height: 148%;
  right: 12%;
}

.auth-cloud--serene {
  --cloud-color: #a80022;
  --cloud-duration: 64s;
  --cloud-delay: -52s;
  --cloud-rotation: 0.75deg;
  top: 18%;
  right: -58px;
  width: 250px;
  height: 72px;
  border-radius: 42% 58% 48% 40% / 70% 60% 40% 30%;
  transform: rotate(0.75deg);
}

.auth-cloud--serene::before {
  width: 36%;
  height: 126%;
  left: 12%;
}

.auth-cloud--serene::after {
  width: 45%;
  height: 152%;
  right: 12%;
}

.auth-cloud--serene-small {
  --cloud-color: #a80022;
  --cloud-duration: 43s;
  --cloud-delay: -28s;
  --cloud-rotation: -0.5deg;
  top: 3%;
  left: 40%;
  width: 146px;
  height: 46px;
  border-radius: 46% 54% 58% 42% / 74% 58% 42% 26%;
  transform: translateX(-50%) rotate(-0.5deg);
}

.auth-cloud--serene-small::before {
  width: 46%;
  height: 148%;
  left: 10%;
}

.auth-cloud--serene-small::after {
  width: 31%;
  height: 112%;
  right: 16%;
}

.auth-cloud--jolly {
  --cloud-color: #b40048;
  --cloud-duration: 68s;
  --cloud-delay: -8s;
  --cloud-rotation: 0.5deg;
  top: 58%;
  left: -78px;
  width: 278px;
  height: 84px;
  border-radius: 54% 46% 36% 52% / 58% 72% 32% 42%;
  transform: rotate(0.5deg);
}

.auth-cloud--jolly::before {
  width: 48%;
  height: 135%;
  left: 9%;
}

.auth-cloud--jolly::after {
  width: 34%;
  height: 112%;
  right: 15%;
}

.auth-cloud--jolly-small {
  --cloud-color: #b40048;
  --cloud-duration: 52s;
  --cloud-delay: -41s;
  --cloud-rotation: -1deg;
  top: 45%;
  right: -54px;
  width: 184px;
  height: 58px;
  border-radius: 52% 48% 40% 60% / 68% 62% 38% 32%;
  transform: rotate(-1deg);
}

.auth-cloud--jolly-small::before {
  width: 39%;
  height: 136%;
  left: 20%;
}

.auth-cloud--jolly-small::after {
  width: 35%;
  height: 118%;
  right: 11%;
}

.auth-cloud--ascend {
  --cloud-color: #a80065;
  --cloud-duration: 62s;
  --cloud-delay: -22s;
  --cloud-rotation: -0.75deg;
  top: 69%;
  right: -46px;
  width: 210px;
  height: 68px;
  border-radius: 45% 55% 52% 40% / 72% 58% 42% 28%;
  transform: rotate(-0.75deg);
}

.auth-cloud--ascend::before {
  width: 35%;
  height: 118%;
  left: 14%;
}

.auth-cloud--ascend::after {
  width: 46%;
  height: 148%;
  right: 10%;
}

.auth-cloud--ascend-small {
  --cloud-color: #a80065;
  --cloud-duration: 48s;
  --cloud-delay: -35s;
  --cloud-rotation: 1deg;
  bottom: 9%;
  left: -34px;
  width: 168px;
  height: 52px;
  border-radius: 40% 60% 55% 45% / 76% 54% 46% 24%;
  transform: rotate(1deg);
}

.auth-cloud--ascend-small::before {
  width: 34%;
  height: 116%;
  left: 12%;
}

.auth-cloud--ascend-small::after {
  width: 48%;
  height: 150%;
  right: 9%;
}

.auth-cloud--elevate {
  --cloud-color: #800066;
  --cloud-duration: 66s;
  --cloud-delay: -57s;
  --cloud-rotation: 0.25deg;
  bottom: -18px;
  left: 50%;
  width: 236px;
  height: 72px;
  border-radius: 58% 42% 45% 55% / 64% 74% 26% 36%;
  transform: translateX(-50%) rotate(0.25deg);
}

.auth-cloud--elevate::before {
  width: 38%;
  height: 132%;
  left: 16%;
}

.auth-cloud--elevate::after {
  width: 40%;
  height: 122%;
  right: 12%;
}

.auth-cloud--elevate-small {
  --cloud-color: #800066;
  --cloud-duration: 50s;
  --cloud-delay: -18s;
  --cloud-rotation: -1.25deg;
  top: 30%;
  left: -48px;
  width: 178px;
  height: 56px;
  border-radius: 62% 38% 46% 54% / 58% 78% 22% 42%;
  transform: rotate(-1.25deg);
}

.auth-cloud--elevate-small::before {
  width: 44%;
  height: 146%;
  left: 13%;
}

.auth-cloud--elevate-small::after {
  width: 32%;
  height: 110%;
  right: 17%;
}

.auth-cloud {
  --cloud-crest-left: 30%;
  --cloud-crest-width: 42%;
  --cloud-crest-height: 145%;
  border-radius: 52% 52% 42% 42% / 78% 78% 30% 30%;
}

.auth-cloud::before,
.auth-cloud::after,
.auth-cloud__crest,
.auth-cloud__crest::before,
.auth-cloud__crest::after {
  background: var(--cloud-color);
  border-radius: 50%;
}

.auth-cloud::before {
  width: 35%;
  height: 92%;
  right: auto;
  bottom: 2%;
  left: 1%;
}

.auth-cloud::after {
  width: 34%;
  height: 88%;
  right: 1%;
  bottom: 2%;
  left: auto;
}

.auth-cloud__crest {
  position: absolute;
  bottom: 10%;
  left: var(--cloud-crest-left);
  width: var(--cloud-crest-width);
  height: var(--cloud-crest-height);
}

.auth-cloud__crest::before,
.auth-cloud__crest::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 58%;
  height: 62%;
}

.auth-cloud__crest::before {
  left: -38%;
}

.auth-cloud__crest::after {
  right: -38%;
}

.auth-cloud--haven {
  --cloud-crest-left: 31%;
  --cloud-crest-width: 40%;
  --cloud-crest-height: 156%;
}

.auth-cloud--haven-small {
  --cloud-crest-left: 37%;
  --cloud-crest-width: 35%;
  --cloud-crest-height: 128%;
}

.auth-cloud--serene {
  --cloud-crest-left: 27%;
  --cloud-crest-width: 46%;
  --cloud-crest-height: 146%;
}

.auth-cloud--serene-small {
  --cloud-crest-left: 30%;
  --cloud-crest-width: 40%;
  --cloud-crest-height: 136%;
}

.auth-cloud--jolly {
  --cloud-crest-left: 34%;
  --cloud-crest-width: 38%;
  --cloud-crest-height: 150%;
}

.auth-cloud--jolly-small {
  --cloud-crest-left: 24%;
  --cloud-crest-width: 48%;
  --cloud-crest-height: 126%;
}

.auth-cloud--ascend {
  --cloud-crest-left: 29%;
  --cloud-crest-width: 45%;
  --cloud-crest-height: 136%;
}

.auth-cloud--ascend-small {
  --cloud-crest-left: 36%;
  --cloud-crest-width: 37%;
  --cloud-crest-height: 152%;
}

.auth-cloud--elevate {
  --cloud-crest-left: 30%;
  --cloud-crest-width: 40%;
  --cloud-crest-height: 160%;
}

.auth-cloud--elevate-small {
  --cloud-crest-left: 28%;
  --cloud-crest-width: 44%;
  --cloud-crest-height: 140%;
}

.auth-cloud {
  border-radius: 0;
  background: transparent;
  filter:
    drop-shadow(0 0 10px var(--cloud-color))
    drop-shadow(0 0 24px var(--cloud-color));
}

.auth-cloud::before,
.auth-cloud::after,
.auth-cloud__crest {
  display: none;
}

.auth-cloud__shape {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.auth-cloud__shape path {
  fill: var(--cloud-color);
}

.auth-cloud--haven {
  height: 105px;
}

.auth-cloud--haven-small {
  height: 72px;
}

.auth-cloud--serene {
  height: 112px;
}

.auth-cloud--serene-small {
  height: 70px;
}

.auth-cloud--jolly {
  height: 124px;
}

.auth-cloud--jolly-small {
  height: 84px;
}

.auth-cloud--ascend {
  height: 100px;
}

.auth-cloud--ascend-small {
  height: 78px;
}

.auth-cloud--elevate {
  height: 110px;
}

.auth-cloud--elevate-small {
  height: 82px;
}

@keyframes auth-cloud-drift {
  from {
    transform: translate3d(112vw, 0, 0) rotate(var(--cloud-rotation));
  }

  to {
    transform: translate3d(calc(-100% - 12vw), 0, 0)
      rotate(var(--cloud-rotation));
  }
}

.auth-cloud {
  animation: auth-cloud-drift var(--cloud-duration) linear var(--cloud-delay)
    infinite;
  will-change: transform;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: clamp(1.4rem, 5vw, 2rem);
  border: 1px solid rgb(218 0 109 / 45%);
  border-radius: 22px;
  background: #331125;
  box-shadow: 0 24px 80px rgb(0 0 0 / 52%), 0 0 34px rgb(218 0 109 / 12%);
  backdrop-filter: blur(16px);
}

.auth-card[hidden] {
  display: none;
}

.auth-card--beta-gate {
  width: min(100%, 390px);
  padding: clamp(1.5rem, 6vw, 2.25rem);
}

.auth-card--beta-gate .auth-card__brand {
  margin-bottom: 1.5rem;
}

.auth-card .beta-gate__form {
  gap: 0.55rem;
}

.beta-gate__entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.auth-card .beta-gate__entry label {
  display: block;
}

.beta-gate__entry input {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.beta-gate__submit {
  min-height: 46px;
  padding: 0.72rem 1rem;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 12px;
  background: linear-gradient(90deg, #d60000, #da006d, #9a0080);
  color: #180011;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
}

.beta-gate__submit:hover {
  filter: brightness(1.1);
}

.beta-gate__status {
  margin-top: 0;
  text-align: center;
}

.auth-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  color: #f7a8f3;
  font-family: "Cinzel", serif;
  font-size: clamp(1.65rem, 7vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.auth-card__brand-dot {
  width: 0.78em;
  aspect-ratio: 1;
  border: 0.22em solid #da006d;
  border-radius: 50%;
  box-shadow: 0 0 18px rgb(218 0 109 / 65%);
}

.auth-card__brand-beta {
  align-self: flex-start;
  margin-top: 0.25rem;
  margin-left: -0.35rem;
  padding: 0.18rem 0.38rem;
  border: 1px solid rgb(247 168 243 / 45%);
  border-radius: 999px;
  background: rgb(247 168 243 / 10%);
  color: #f7a8f3;
  font-family: "Inter", sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.auth-card h1 {
  margin: 0;
  color: #f7a8f3;
  font-size: 1.55rem;
  text-align: center;
}

.auth-card__intro {
  margin: 0.55rem 0 1.35rem;
  color: #f7a8f3;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.auth-card form,
.auth-card label {
  display: grid;
}

.auth-card label[hidden] {
  display: none;
}

.auth-card label small {
  color: #dba0c1;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
}

.auth-card form {
  gap: 0.9rem;
}

.auth-card label {
  gap: 0.42rem;
  color: #f7a8f3;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-card input {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgb(247 168 243 / 28%);
  border-radius: 12px;
  outline: none;
  background: rgb(6 5 8 / 72%);
  color: #f7a8f3;
}

.auth-card input:focus {
  border-color: #da006d;
  box-shadow: 0 0 0 3px rgb(218 0 109 / 18%);
}

.auth-card__password-note,
.auth-card__status {
  margin: -0.35rem 0 0;
  font-size: 0.78rem;
}

.auth-card__password-note {
  color: #f7a8f3;
}

.auth-card__status {
  min-height: 1.2em;
  color: #ff668c;
}

.auth-consent {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid rgb(247 168 243 / 22%);
  border-radius: 12px;
  background: rgb(6 5 8 / 42%);
}

.auth-consent[hidden] {
  display: none;
}

.auth-consent legend {
  padding: 0 0.35rem;
  color: #f7a8f3;
  font-size: 0.78rem;
  font-weight: 800;
}

.auth-card .auth-consent__option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: #edcbe1;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
}

.auth-card .auth-consent__option input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0.1rem 0 0;
  padding: 0;
  accent-color: #da006d;
}

.auth-consent__option a {
  color: #ffb8dc;
  font-weight: 700;
  text-underline-offset: 0.14em;
}

.auth-consent__option a:hover {
  color: #fff;
}

.auth-card__submit,
.auth-card__dev-bypass,
.auth-card__mode {
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
}

.auth-card__submit {
  border: 1px solid rgb(255 255 255 / 22%);
  background: linear-gradient(90deg, #d60000, #da006d, #9a0080);
  color: #180011;
  font-weight: 800;
  box-shadow: 0 8px 20px rgb(218 0 109 / 24%);
}

.auth-card__submit:disabled,
.auth-card__dev-bypass:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-card__mode {
  width: 100%;
  margin-top: 0.65rem;
  border: 0;
  background: transparent;
  color: #f7a8f3;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-card__mode:hover {
  text-decoration: underline;
}

.auth-card__forgot {
  display: block;
  width: 100%;
  min-height: 32px;
  margin-top: 0.6rem;
  border: 0;
  background: transparent;
  color: #dba0c1;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-card__guest {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 0.75rem;
  border: 1px solid rgb(247 168 243 / 45%);
  border-radius: 999px;
  background: rgb(247 168 243 / 8%);
  color: #f7a8f3;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-card__guest:hover {
  background: rgb(247 168 243 / 15%);
}

.auth-card__guest:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-card__guest[hidden] {
  display: none;
}

.auth-card__forgot:hover {
  text-decoration: underline;
}

.auth-card__forgot[hidden] {
  display: none;
}

.auth-card__dev-tools:not(:empty) {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(247 168 243 / 18%);
}

.auth-card__dev-label {
  margin: 0 0 0.55rem;
  color: #f7a8f3;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.auth-card__dev-bypass {
  width: 100%;
  border: 1px dashed rgb(247 168 243 / 50%);
  background: rgb(247 168 243 / 10%);
  color: #f7a8f3;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 520px) {
  .auth-cloud--haven {
    left: -64px;
    width: 170px;
    height: 82px;
  }

  .auth-cloud--serene {
    right: -76px;
    width: 190px;
    height: 88px;
  }

  .auth-cloud--jolly {
    left: -86px;
    width: 205px;
    height: 96px;
  }

  .auth-cloud--ascend {
    right: -68px;
    width: 170px;
    height: 84px;
  }

  .auth-cloud--elevate {
    bottom: -16px;
    width: 190px;
    height: 90px;
  }

  .auth-cloud--haven-small {
    right: -54px;
    width: 132px;
    height: 62px;
  }

  .auth-cloud--serene-small {
    width: 124px;
    height: 60px;
  }

  .auth-cloud--jolly-small {
    right: -66px;
    width: 150px;
    height: 70px;
  }

  .auth-cloud--ascend-small {
    left: -56px;
    width: 142px;
    height: 66px;
  }

  .auth-cloud--elevate-small {
    left: -62px;
    width: 146px;
    height: 68px;
  }
}

.auth-cloud {
  right: auto;
  left: 0;
}
