.signup-page {
  --signup-surface: #18181a;
  --signup-panel: #101011;
  --signup-input: #242426;
  --signup-border: rgba(255, 255, 255, 0.14);
  --signup-divider: rgba(255, 255, 255, 0.11);
}

body:has(.signup-page) {
  background:
    linear-gradient(rgba(8, 8, 9, 0.56), rgba(8, 8, 9, 0.72)),
    url("/fs.cdn.poly.app/assets/landingpage/ec628e3/public/images/hero-loading.webp") center / cover no-repeat fixed;
}

.signup-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  padding: 104px 24px 36px;
}

.signup-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.82fr);
  width: min(1120px, 100%);
  overflow: hidden;
  background: var(--signup-surface);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.signup-surface {
  width: auto;
  padding: 44px 48px 40px;
  background: var(--signup-surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.signup-surface .login-heading {
  max-width: 590px;
}

.signup-surface .eyebrow {
  margin-bottom: 14px;
}

.signup-surface .login-heading h1 {
  max-width: none;
  font-size: 40px;
  font-weight: 560;
  line-height: 1.04;
}

.signup-surface .login-heading > p:last-child {
  max-width: 540px;
  margin-top: 12px;
  color: rgba(244, 244, 244, 0.64);
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
}

.signup-surface form {
  gap: 0;
  margin-top: 28px;
}

.signup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 18px;
}

.field-group {
  min-width: 0;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-group label,
.field-label-row label {
  display: block;
  margin: 0 0 8px;
  color: #f5f4f2;
  font-size: 13px;
  font-weight: 620;
}

.field-label-row label {
  margin-bottom: 8px;
}

.signup-password-toggle {
  margin-bottom: 8px;
  padding: 2px 0;
  color: rgba(245, 244, 242, 0.6);
  font-size: 11px;
  font-weight: 650;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.signup-password-toggle:hover,
.signup-password-toggle:focus-visible {
  color: #fff;
}

.signup-password-toggle:focus-visible {
  outline: 2px solid #ffd3bf;
  outline-offset: 3px;
}

.field-group input {
  width: 100%;
  height: 50px;
  color: #f5f4f2;
  background: var(--signup-input);
  border-color: rgba(255, 255, 255, 0.17);
}

.field-group input:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.field-group input:focus {
  background: #29292b;
}

.field-note {
  min-height: 28px;
  margin: 7px 0 0;
  color: rgba(245, 244, 242, 0.46);
  font-size: 10px;
  line-height: 1.4;
}

.field-error {
  min-height: 16px;
  margin: 5px 0 0;
  color: #ff9d7b;
  font-size: 11px;
  line-height: 1.35;
}

.terms-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 18px;
  color: rgba(245, 244, 242, 0.67);
  font-size: 11px;
  line-height: 1.5;
}

.terms-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #f4824d;
}

.terms-check a {
  color: #f5f4f2;
  text-underline-offset: 2px;
}

.terms-error {
  margin-left: 28px;
}

.signup-surface .form-status {
  margin: 2px 0 0;
}

.signup-surface .submit-button {
  margin-top: 6px;
}

.login-help {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  color: rgba(245, 244, 242, 0.48);
  font-size: 11px;
}

.guest-entry {
  position: relative;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--signup-divider);
}

.guest-entry > span {
  position: absolute;
  top: -8px;
  left: 50%;
  padding: 0 10px;
  color: rgba(245, 244, 242, 0.42);
  font-size: 10px;
  text-transform: uppercase;
  background: var(--signup-surface);
  transform: translateX(-50%);
}

.guest-entry__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: #f5f4f2;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  cursor: pointer;
}

.guest-entry__button:hover,
.guest-entry__button:focus-visible {
  border-color: rgba(255, 255, 255, 0.68);
}

.guest-entry__button:focus-visible {
  outline: 2px solid #ffd3bf;
  outline-offset: 3px;
}

.guest-entry__button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.guest-entry p {
  margin: 9px 0 0;
  color: rgba(245, 244, 242, 0.48);
  font-size: 10px;
  line-height: 1.45;
}

.login-help a {
  color: #f5f4f2;
  font-weight: 650;
}

.login-context {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 44px 38px 38px;
  color: #f5f4f2;
  background: var(--signup-panel);
  border-left: 1px solid var(--signup-divider);
}

.context-label {
  margin: 0;
  color: #f4824d;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
}

.context-heading h2 {
  margin: 12px 0 0;
  font-family: "Haffer Variable", "Haffer", sans-serif;
  font-size: 19px;
  font-weight: 560;
  line-height: 1.12;
  white-space: nowrap;
}

.context-heading > p:last-child {
  margin: 12px 0 0;
  color: rgba(245, 244, 242, 0.56);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.login-context ol {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--signup-divider);
}

.login-context li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--signup-divider);
}

.login-context li span {
  padding-top: 2px;
  color: rgba(245, 244, 242, 0.42);
  font-size: 10px;
}

.login-context li strong {
  color: rgba(245, 244, 242, 0.88);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.context-privacy {
  margin-top: auto;
  padding-top: 22px;
}

.context-privacy strong {
  display: block;
  color: rgba(245, 244, 242, 0.82);
  font-size: 11px;
  font-weight: 650;
}

.context-privacy p {
  margin: 7px 0 0;
  color: rgba(245, 244, 242, 0.48);
  font-size: 11px;
  line-height: 1.5;
}

.signup-success {
  margin-top: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #f5f4f2;
  font-weight: 800;
  background: transparent;
  border: 1px solid rgba(245, 244, 242, 0.56);
  border-radius: 0;
}

.signup-success h2 {
  margin: 22px 0 0;
  font-family: "Haffer Variable", "Haffer", sans-serif;
  font-size: 32px;
  font-weight: 520;
}

.signup-success p {
  margin: 12px 0 0;
  color: rgba(245, 244, 242, 0.7);
  font-size: 13px;
  line-height: 1.55;
}

.signup-success a {
  display: inline-flex;
  margin-top: 22px;
  color: #f4824d;
  font-size: 12px;
  font-weight: 680;
}

@media (max-width: 980px) {
  .signup-main {
    align-items: flex-start;
    padding-top: 96px;
  }

  .signup-shell {
    grid-template-columns: 1fr;
    width: min(720px, 100%);
  }

  .login-context {
    border-top: 1px solid var(--signup-divider);
    border-left: 0;
  }

  .login-context ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-context li:nth-child(odd) {
    padding-right: 18px;
    border-right: 1px solid var(--signup-divider);
  }

  .login-context li:nth-child(even) {
    padding-left: 18px;
  }

  .context-privacy {
    margin-top: 24px;
  }
}

@media (max-width: 700px) {
  body:has(.signup-page) {
    background:
      linear-gradient(rgba(7, 7, 8, 0.7), rgba(7, 7, 8, 0.86)),
      url("/fs.cdn.poly.app/assets/landingpage/ec628e3/public/images/hero-loading-mobile.webp") center top / cover no-repeat fixed;
  }

  .signup-main {
    width: 100%;
    min-height: 100svh;
    padding: 82px 12px 20px;
  }

  .signup-shell {
    width: 100%;
  }

  .signup-surface {
    padding: 30px 22px 26px;
  }

  .signup-surface .login-heading h1 {
    font-size: 34px;
  }

  .signup-surface .login-heading > p:last-child {
    font-size: 13px;
  }

  .signup-surface form {
    margin-top: 24px;
  }

  .signup-grid {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .field-note {
    min-height: 0;
  }

  .login-context {
    padding: 30px 22px;
  }

  .login-context ol {
    display: block;
    margin-top: 22px;
  }

  .login-context li:nth-child(odd),
  .login-context li:nth-child(even) {
    padding: 14px 0;
    border-right: 0;
  }
}

@media (max-width: 380px) {
  .signup-main {
    padding-inline: 8px;
  }

  .signup-surface,
  .login-context {
    padding-inline: 18px;
  }

  .signup-surface .login-heading h1 {
    font-size: 31px;
  }

}
