#auth-screen {
  --auth-accent: #12e6a3;
  --auth-muted: #9aa4b0;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(108px, 1fr) auto minmax(32px, 1fr);
  justify-items: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 24px;
  overflow: clip;
  color: #f1f6f8;
  background: #061615;
}

#auth-screen .auth-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

#auth-screen .auth-brand {
  position: absolute;
  top: 30px;
  left: 39px;
  gap: 12px;
  margin: 0;
}

#auth-screen .auth-brand .brand-mascot {
  width: 76px;
}

#auth-screen .auth-brand-copy {
  border-left: 1px solid rgba(175, 228, 226, .17);
  padding-left: 13px;
}

#auth-screen .auth-brand strong {
  color: #75efd6;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 31px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}

#auth-screen .auth-brand span {
  margin-top: 3px;
  color: #b4bec8;
  font-size: 13px;
  line-height: 18px;
}

#auth-screen .auth-card {
  position: relative;
  isolation: isolate;
  grid-row: 2;
  width: min(453px, 100%);
  margin-inline-start: min(5.39vw, 88px);
  padding: 27px 35px 31px;
  border: 0;
  border-radius: 16px;
  background: #101e23;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .29);
}

#auth-screen .auth-card::before {
  content: "";
  position: absolute;
  inset: -86px;
  z-index: -2;
  background:
    radial-gradient(ellipse 64px 13px at calc(100% - 142px) 86px, rgba(56, 244, 217, .38), transparent),
    radial-gradient(ellipse 72px 42px at 87px calc(100% - 100px), rgba(23, 200, 203, .17), transparent),
    radial-gradient(ellipse 37px 25px at calc(100% - 90px) calc(100% - 89px), rgba(24, 223, 195, .28), transparent);
  pointer-events: none;
}

#auth-screen .auth-card-surface {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}

#auth-screen .auth-tabs {
  gap: 32px;
  height: 43px;
  margin: 0 0 24px;
  border-color: rgba(175, 211, 219, .10);
}

#auth-screen .auth-tab {
  position: relative;
  padding: 0 0 11px;
  border: 0;
  color: var(--auth-muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
}

#auth-screen .auth-tab:is(.active, :hover) {
  color: var(--auth-accent);
}

#auth-screen .auth-tab.active {
  font-weight: 700;
}

#auth-screen .auth-tab.active::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  border-bottom: 2px solid var(--auth-accent);
  box-shadow: 0 0 9px rgba(18, 230, 163, .25);
}

#auth-screen .auth-form {
  gap: 0;
}

#auth-screen .auth-field {
  display: grid;
  gap: 5px;
}

#auth-screen .auth-field + .auth-field {
  margin-top: 20px;
}

#auth-screen .auth-field label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #eef4f6;
  font-size: 14px;
  font-weight: 650;
  line-height: 19px;
}

#auth-screen svg {
  display: block;
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#auth-screen .auth-field label svg {
  width: 16px;
  height: 16px;
  color: #83b6af;
}

#auth-screen .auth-input {
  position: relative;
  min-width: 0;
}

#auth-screen .auth-input-icon {
  --auth-keyhole: #47545b;
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #a5aeb9;
  fill: currentColor;
  pointer-events: none;
}

#auth-screen .auth-input input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 47px;
  padding: 0 47px 0 41px;
  border: 1px solid rgba(174, 202, 216, .15);
  border-radius: 11px;
  background: linear-gradient(100deg, rgba(177, 209, 222, .18), rgba(157, 178, 202, .07) 47%, rgba(157, 178, 202, .06) 79%, rgba(177, 209, 222, .11));
  color: #f1f6f8;
  font-size: 14px;
}

#auth-screen .auth-input input::placeholder {
  color: #89939e;
}

#auth-screen .auth-input input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(18, 230, 163, .12);
}

#auth-screen .auth-input input::-ms-reveal {
  display: none;
}

#auth-screen .auth-password-toggle {
  position: absolute;
  top: 3px;
  right: 4px;
  bottom: 3px;
  display: grid;
  width: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #a5aeb9;
  background: transparent;
}

#auth-screen .auth-password-toggle:hover {
  color: #f1f6f8;
}

#auth-screen .auth-password-toggle[aria-pressed="false"] .auth-eye-on,
#auth-screen .auth-password-toggle[aria-pressed="true"] .auth-eye-off {
  display: none;
}

#auth-screen .auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  margin-top: 18px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(105deg, #16db8a, #14e0bb 68%, #12e0a6);
  box-shadow: 0 7px 18px rgba(16, 205, 161, .12);
  color: #031813;
  font-size: 17px;
  font-weight: 750;
  transition: filter .15s ease, transform .15s ease;
}

#auth-screen .auth-submit svg {
  width: 21px;
  height: 21px;
  opacity: .77;
}

#auth-screen .auth-submit:hover {
  filter: brightness(1.08);
}

#auth-screen .auth-submit:active {
  transform: translateY(1px);
}

#auth-screen button:focus-visible {
  outline: 2px solid #79ffda;
  outline-offset: 3px;
}

#auth-screen .form-message:empty {
  min-height: 0;
  margin: 0;
}

#auth-screen .auth-footnote {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 23px 0 0;
  color: var(--auth-muted);
  font-size: 12.5px;
  line-height: 22px;
  text-align: center;
}

#auth-screen .auth-footnote::before,
#auth-screen .auth-footnote::after {
  content: "";
  flex: 1 0 12px;
  border-top: 1px solid rgba(175, 211, 219, .18);
}

@media (max-width: 900px) {
  #auth-screen .auth-scene {
    object-position: 18% center;
  }
}

@media (max-width: 760px) {
  #auth-screen {
    grid-template-rows: auto minmax(156px, 1.6fr) auto minmax(24px, 1fr);
    padding: 20px 18px 0;
  }

  #auth-screen::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -2;
    height: 190px;
    background: url("/auth-scene.png") right bottom / auto 440px no-repeat;
    mask-image: linear-gradient(transparent, #000 72%);
    pointer-events: none;
  }

  #auth-screen .auth-scene {
    top: -32px;
    height: clamp(365px, 63svh, 510px);
    object-position: left center;
    mask-image: linear-gradient(#000 72%, transparent);
  }

  #auth-screen .auth-brand {
    position: static;
    grid-row: 1;
    justify-self: start;
  }

  #auth-screen .auth-brand .brand-mascot {
    width: 60px;
  }

  #auth-screen .auth-brand strong {
    font-size: 23px;
    line-height: 27px;
  }

  #auth-screen .auth-card {
    grid-row: 3;
    margin-inline-start: 0;
    padding-inline: clamp(18px, 6.4vw, 35px);
  }

  #auth-screen .auth-input input {
    font-size: 16px;
  }

  #auth-screen .auth-footnote {
    gap: 8px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #auth-screen .auth-submit {
    transition: none;
  }

  #auth-screen .auth-submit:active {
    transform: none;
  }
}
