/* Sign In and Sign Up pages */

main.sign {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 24px;
  row-gap: 48px;
  overflow: hidden;
  box-sizing: border-box;
  max-height: 100vh;
}

main.sign > * {
  width: calc(100vw - 48px);
  position: relative;
  box-sizing: border-box;
}

.welcome-image {
  object-fit: cover;
  border-radius: 16px;
  width: 100%;
  height: 100%;
  flex: 1 0 0;
}

.aside .onboarding-carousel-wrapper {
  flex: 1 1 0;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
}

.sign .logo {
  width: 100%;
}

.sign .logo.mini {
  width: 15vw;
}

.sign .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: 184px;
}

.aside {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 0 0;
}

form {
  width: 100%;
}

.sign .content h1 {
  margin-top: 48px;
}

form {
  margin-top: 16px;
}

.form-wrapper {
  /* width: 100%; */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

main.sign .input-shape {
  max-width: 100%;
}

main.sign .main-button-shape {
  margin: 0;
  max-width: 100%;
}

main.sign .btn-small {
    aspect-ratio: 1 / 1;
    max-width: 80px;
}

.bottom-actions {
  margin-top: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  position: absolute;
  bottom: 0px;
}

.bottom-actions .h-stack-S {
  width: 100%;
}

.change-page {
  margin-bottom: 48px;
}

@media screen and (min-width: 768px) {
  main.sign {
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    max-height: 100vh;
  }

  main.sign > * {
    width: 100%;
    max-width: none;
  }

  .sign .content {
    height: 100%;
    padding-top: 80px;
    padding-bottom: 80px;
    overflow-y: scroll;
    mask-image: linear-gradient(to bottom, transparent, var(--Surface-Page-Containers-Default-Background) 10%, var(--Surface-Page-Containers-Default-Background) 90%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    position: relative;
  }

  .sign .content .logo {
    width: 100%;
    max-width: 659px;
    height: auto;
    flex-shrink: 0;
  }

  .bottom-actions {
    width: 30vw;
    position: relative;
  }

  .bottom-actions.fixed {
    position: relative;
    bottom: auto;
    flex-shrink: 0;
  }

  form .bottom-actions {
    padding-left: 0;
    padding-right: 0;
    width: 30vw;
  }

  .aside {
    order: 2;
    min-width: 0;
    overflow: hidden;
  }

  form {
    width: 30vw;
  }

  .welcome-image {
    position: sticky;
    top: 0;
    height: calc(100vh - 48px);
  }

  .aside .onboarding-carousel-wrapper {
    position: sticky;
    top: 0;
    height: calc(100vh - 48px);
  }
}

@media screen and (max-width: 767px) {
  main.sign {
    padding: 24px !important;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    row-gap: 0;
    box-sizing: border-box;
  }

  main.sign > * {
    width: 100%;
    position: relative;
  }

  .aside {
    order: -1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
  }

  .aside .welcome-logo {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }

  .welcome-image {
    flex: 1 1 0;
    min-height: 0;
    object-fit: cover;
  }

  .aside .onboarding-carousel-wrapper {
    flex: 1 1 0;
    min-height: 0;
  }

  .sign .content {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 0;
    margin-top: 20px;
  }

  .sign .content .logo.desktop-only {
    display: none;
  }

  .sign .content .form-wrapper,
  .sign .content form {
    padding-bottom: 200px;
  }

  .bottom-actions {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    width: calc(100% - 48px);
    background-color: var(--Surface-Page-Containers-Default-Background);
    padding: 16px 0;
    z-index: 10;
  }

  .bottom-actions.fixed {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    width: calc(100% - 48px);
    margin-top: 0;
  }
}
