.signup-main {
  min-height: calc(100vh - 5.5rem);
  display: flex;
  justify-content: center;
  gap: clamp(3rem, 8vw, 8rem);
  flex-wrap: wrap;
  padding: clamp(3rem, 8vw, 7rem) var(--page);
  background:
    radial-gradient(circle at 8% 15%, rgba(46, 217, 255, 0.18), transparent 24rem),
    linear-gradient(135deg, var(--surface-default), var(--surface-subtle));
}

.signup-intro {
  max-width: 39rem;
  flex: 1 1 30rem;

  small {
    display: block;
    margin-bottom: 1rem;
    color: #116c83;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  h1 {
    margin-bottom: 1.5rem;
    color: var(--brand-primary);
    font-size: clamp(2.75rem, 6vw, 4.75rem);
    letter-spacing: -0.06em;
    line-height: 1;
  }

  p {
    max-width: 34rem;
    color: var(--text-muted);
    font-size: 1.125rem;
  }
}

.signup-card {
  width: min(100%, 31rem);
  flex: 0 1 31rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--surface-border);
  border-radius: 0.875rem;
  background: var(--surface-default);
  box-shadow: 0 1.5rem 5rem rgba(7, 27, 74, 0.12);

  > div[hidden] {
    display: none;
  }

  header {
    > small {
      display: block;
      margin-bottom: 1rem;
      color: #116c83;
      font-size: 0.75rem;
      font-weight: 850;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    p {
      margin: -0.75rem 0 1.75rem;
      color: var(--text-muted);
    }

    .selected-plan {
      display: flex;
      align-items: center;
      padding: 0.75rem 1rem;
      border-left: 0.25rem solid var(--highlight-primary);
      background: var(--surface-subtle);
      color: var(--brand-primary);
      font-weight: 700;

      &[hidden] {
        display: none;
      }
    }
  }

  h2 {
    margin-bottom: 1.75rem;
    color: var(--brand-primary);
    font-size: 2rem;
    letter-spacing: -0.035em;
    line-height: 1.15;
  }

  form {
    display: flex;
    flex-direction: column;
  }

  label {
    margin-bottom: 0.4rem;
    color: var(--brand-primary);
    font-size: 0.9rem;
    font-weight: 800;
  }

  input:not([type="checkbox"]) {
    min-height: 3.25rem;
    padding-inline: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid #8fa7ba;
    border-radius: 0.375rem;
    color: var(--text-default);
    font: inherit;
  }

  .field-help {
    margin: -0.5rem 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
  }

  .terms-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.45;

    & input {
      flex: 0 0 auto;
      width: 1rem;
      height: 1rem;
      margin-top: 0.2rem;
    }

    & a {
      color: var(--brand-primary);
      font-weight: 700;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  button {
    min-height: 3.25rem;
    padding-inline: 1.25rem;
    border: 0;
    border-radius: 0.375rem;
    background: var(--brand-primary);
    color: var(--surface-default);
    font: inherit;
    font-weight: 800;
    cursor: pointer;

    &:disabled {
      cursor: wait;
      opacity: 0.65;
    }
  }

  .form-message {
    min-height: 1.5rem;
    margin-bottom: 0.75rem;
    color: #b42318;
    font-size: 0.875rem;
  }

  .existing-account {
    margin: 1.5rem 0 0;
    color: var(--text-muted);
    text-align: center;

    a {
      border-bottom: 0.125rem solid var(--highlight-primary);
      color: var(--brand-primary);
    }
  }
}

body > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2.25rem var(--page);
  background: var(--brand-primary);
  color: var(--surface-default);

  img {
    width: 10rem;
    height: auto;
  }

  p {
    margin: 0;
  }
}

@media (max-width: 48rem) {
  .signup-main {
    align-items: flex-start;
  }

  .signup-intro {
    flex-basis: 100%;

    h1 {
      font-size: clamp(2.5rem, 12vw, 4rem);
    }
  }
}
#resend-confirmation {
  background-color: transparent;
  color: var(--text-default);
}
