@use 'pix-design-tokens/breakpoints';
@use 'pix-design-tokens/typography';

.sco-signup-or-login {
  margin: 20px 0;
  vertical-align: top;

  &__panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 97vw;
    max-width: 880px;
    padding: 20px 3px;
    border-radius: 10px;

    @include breakpoints.device-is('large-screen') {
      width: 100vw;
      max-width: 1080px;
      padding: 40px 100px;
    }

    @include breakpoints.device-is('mobile') {
      align-items: center;
      padding: 20px 2px;
    }
  }

  abbr {
    text-decoration: none;
  }
}

.sco-signup-or-login-panel {
  &__logo {
    display: flex;
    width: 159px;
    height: 123px;
    margin: auto;
  }

  &__invitation {
    @extend %pix-body-l;

    margin-top: 24px;
    color: var(--pix-neutral-500);
    text-align: center;
  }

  &__forms-container {
    display: flex;
    flex-flow: row;
    justify-content: space-around;
    min-height: 500px;
    margin-top: 10px;

    @include breakpoints.device-is('large-screen') {
      flex-flow: row;
      justify-content: space-between;
    }

    @include breakpoints.device-is('mobile') {
      flex-flow: column;
      margin: 10px 20px 0;
    }
  }

  &__form {
    display: flex;
    flex-direction: column;

    @include breakpoints.device-is('tablet') {
      width: 360px;
    }
  }

  &__divider {
    margin-top: 30px;
    border-left: 1px solid var(--pix-neutral-100);
  }
}

.sco-signup-or-login-panel-form {
  &__expandable {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow-y: hidden;
    transition: max-height 0.4s ease-in-out;

    &--expanded {
      max-height: 860px;
    }
  }
}

.form-title {
  @extend %pix-title-s;

  margin-bottom: 20px;
  color: var(--pix-neutral-900);
}
