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

.account-recovery {
  display: flex;
  min-height: 100vh;
  padding: 30px;
  background-color: var(--pix-neutral-0);

  @include breakpoints.device-is('tablet') {
    padding: 56px 60px;
  }

  &__form {
    display: flex;
    flex-direction: column;
    gap: var(--pix-spacing-4x);

    > .pix-input {
      width: 100%;
    }
  }

  &__content {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--pix-neutral-0);

    @include breakpoints.device-is('desktop') {
      flex: 1 1 0;
      flex-direction: row;
      align-items: center;

      .pix-logo {
        position: absolute;
        top: 0;
        left: 7%;
      }
    }

    &--form {
      position: relative;

      &-fields {
        display: flex;
        flex-direction: column;
        gap: var(--pix-spacing-2x);
        width: 100%;

        @include breakpoints.device-is('desktop') {
          max-width: 400px;
        }
      }
    }

    &--image {
      display: none;

      @include breakpoints.device-is('desktop') {
        display: flex;
        flex-basis: 40%;
        justify-content: flex-end;
        margin-right: 80px;

        img {
          width: 350px;
        }
      }
    }

    &--step {
      padding-top: 30px;

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

      @include breakpoints.device-is('desktop') {
        flex-basis: 60%;
        padding-top: 0;
      }

      &--content {
        max-width: 450px;

        .pix-input {
          width: 100%;
        }
      }
    }

    &--title {
      @extend %pix-title-s;

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

    &--information-text {
      margin: 0;

      @extend %pix-body-s;

      a {
        color: var(--pix-communication-dark);
      }

      &--details {
        @extend %pix-body-s;

        margin-top: 16px;
        margin-bottom: 24px;
        color: var(--pix-neutral-900);

        a {
          color: var(--pix-communication-dark);
        }

        &.checkbox-with-label {
          display: flex;
          align-items: center;

          input[type='checkbox'] {
            margin-right: 16px;
            cursor: pointer;
          }

          label {
            cursor: pointer;
          }

          &.with-links {
            flex-direction: row-reverse;
          }
        }
      }
    }

    &--not-found-error {
      margin-top: 20px;

      a {
        color: var(--pix-communication-dark);
      }
    }

    &--actions {
      display: flex;
      flex-direction: column;
      flex-grow:1;
      max-width: 400px;
      margin-top: 18px;

      button:first-child {
        margin-bottom: var(--pix-spacing-3x)
      }
    }
  }
}
