body.auth-page {
  --auth-ink: #e6f4eb;
  --auth-mint: #a4e6bf;
  --auth-outline: #34574a;
  color: var(--auth-ink);
  color-scheme: dark;
  background: #080f0c;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 44%, #214936 0%, transparent 58%),
    linear-gradient(121deg, transparent 17%, #aacdb015 17.1%, transparent 17.35%,
      transparent 63%, #254e3690 63.1%, #17312740 78%, #8ecba051 78.1%, transparent 78.35%),
    radial-gradient(ellipse at 100% 0%, #1a3b2b, transparent 62%);
  pointer-events: none;
}

.auth-page .auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  max-width: none;
  padding: clamp(22px, 5vw, 56px) clamp(16px, 4vw, 32px);
  overflow-x: clip;
}

.auth-intro {
  display: grid;
  place-items: center;
  position: relative;
}

[data-auth-stage="welcome"] .auth-workspace,
[data-auth-stage="form"] .auth-intro {
  display: none;
}

.auth-page .brand {
  margin: 0;
  color: var(--auth-mint);
  letter-spacing: -.055em;
}

.auth-wordmark {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: #b7e9c8;
  opacity: .24;
  filter: blur(clamp(1px, .19vw, 4px));
  mask-image: radial-gradient(ellipse 75% 100%, #000 21%, transparent 100%);
  font-size: min(21vw, 36rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.075em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.auth-emblem {
  display: grid;
  place-items: center;
  font-size: clamp(7.5rem, 27vw, 13.75rem);
}

.auth-emblem .brand-mark {
  grid-area: 1 / 1;
  width: .84em;
  margin: 0;
  color: var(--auth-mint);
  border-radius: .09em;
  border-width: 2px;
  background: #10251bc7;
  box-shadow: inset 0 0 .25em #baf9c828, 0 0 .45em #baf9c834;
}

.auth-emblem .brand-mark::before {
  background: linear-gradient(150deg, #93d6af, #488063);
}

.auth-emblem .brand-mark::after {
  content: none;
}

.auth-enter {
  grid-area: 1 / 1;
  z-index: 1;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: clamp(57px, 13vw, 80px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #163024;
  font-size: clamp(.72rem, 2.4vw, .88rem);
  font-weight: 800;
  white-space: nowrap;
}

.auth-enter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #e6ffed;
  box-shadow: 0 0 25px 6px #d9ffcf9c;
}

.auth-enter:hover {
  text-decoration: none;
}

.auth-enter:hover::before,
.auth-enter:focus-visible::before {
  background: #fff;
}

.auth-workspace {
  display: grid;
  width: min(100%, 41rem);
  justify-items: center;
  gap: clamp(18px, 4vh, 36px);
}

.auth-page .auth-compact-brand {
  font-size: clamp(1.45rem, 4vw, 2.15rem);
}

.auth-card {
  --auth-shift: min(24vw, 17rem);
  width: min(100%, 29rem);
  padding: clamp(18px, 5vw, 38px);
  border: 1px solid var(--auth-outline);
  border-radius: 22px;
  color: var(--auth-ink);
  background: linear-gradient(151deg, #1d3128, #101b15 68%);
  box-shadow: 0 22px 65px #03080590, inset 0 1px 0 #e3ffee14;
}

[data-auth-variant="signup"] .auth-card {
  --auth-shift: max(-24vw, -17rem);
  width: 100%;
}

.auth-card .auth-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: clamp(18px, 4vh, 28px);
  padding: 4px;
  border: 1px solid var(--auth-outline);
  border-radius: 12px;
  background: #0c1711;
}

.auth-nav a {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 7px;
  border-radius: 8px;
  font-size: .88rem;
  text-align: center;
}

.auth-nav a[aria-current] {
  background: #294836;
  color: #eaffee;
}

.auth-card header {
  margin-bottom: 20px;
}

.auth-card h1 {
  font-size: clamp(1.65rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.auth-card h1:focus {
  outline: none;
}

.auth-card p {
  margin: .55rem 0 0;
}

.auth-card form {
  margin: 0;
  padding: 0;
  max-width: none;
}

.auth-card .fields {
  gap: 12px 14px;
}

.auth-card .fields > label {
  margin: 0;
}

.auth-card label {
  color: #c5d5cb;
  font-weight: 650;
}

.auth-card .fields > label input {
  display: block;
  margin-top: 6px;
}

.auth-card input {
  min-height: 46px;
  border-color: var(--auth-outline);
  border-radius: 9px;
  background: #0c1711;
}

.auth-card .module-form .fields {
  margin-bottom: 18px;
}

.auth-card button[type="submit"],
.auth-card > .button {
  justify-content: center;
  min-height: 46px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--auth-mint);
  color: #0c2015;
  font-size: .92rem;
}

.auth-card .actions {
  display: grid;
}

.auth-card .alert {
  margin: 0 0 16px;
}

.auth-alternate {
  width: fit-content;
  padding-block: .4rem;
  font-size: .88rem;
  text-underline-offset: .22em;
}

.auth-footer {
  margin-top: 17px;
  padding-top: 10px;
  border-top: 1px solid var(--auth-outline);
}

@media (prefers-reduced-motion: no-preference) {
  .auth-emblem {
    animation: auth-logo-in .57s cubic-bezier(.15, .85, .3, 1) both;
  }

  .auth-enter::before {
    animation: auth-beacon 1.45s ease-in-out infinite alternate;
  }

  .auth-enter span {
    animation: auth-tap-in .34s ease-out .65s backwards;
  }

  [data-auth-stage="form"] .auth-card {
    animation: auth-slide-in .49s cubic-bezier(.17, .85, .23, 1) both;
  }
}

@keyframes auth-logo-in {
  from { opacity: 0; transform: scale(.88); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes auth-beacon {
  from { transform: scale(.87); box-shadow: 0 0 15px 3px #d9ffcf65; }
  to { transform: scale(1.13); box-shadow: 0 0 29px 8px #d9ffcfb3; }
}

@keyframes auth-tap-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-slide-in {
  from { opacity: 0; transform: translateX(var(--auth-shift)) scale(.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
