@import '../helpers/helpers';
@import '../components/leave-modal';
@import '../libs/pstrength';

.change-password {
  padding-top: 0;

  .globalMessages {
    .notification:first-child {
      margin-top: 16px;
    }

    .notification {
      margin-bottom: 8px;

      &_link {
        color: $white;
        text-decoration: none;
        padding: 0 5px;

        &:hover {
          text-decoration: none;
          color: $white;
        }
      }
    }
  }

  .warning-required {
    margin-top: 0;
    margin-bottom: 24px;

    &::before {
      margin-right: 4px;
    }
  }

  &__header {
    .title {
      @include font-size(26);
      @include line-height(36);
      margin-bottom: 24px;
    }
  }

  .account-nav {
    margin-bottom: 16px;
  }

  &__form {
    .form-row {
      padding: 0;
      margin: 0 0 24px;

      &__label,
      &__field {
        padding-right: 0;
        padding-left: 0;
      }

      &__label {
        &::before {
          margin-right: 4px;
        }
      }

      &__info,
      &__error {
        padding-left: 0;
      }

      .tbx {
        padding-right: 35px;
      }

      .toggle-show {
        @include font-size(16);
        cursor: pointer;
        position: absolute;
        right: 8px;
        top: 0;
        height: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
      }

      .input-wrap {
        position: relative;
      }
    }
  }

  &__ctas {
    display: flex;

    .btn--cancel {
      margin-left: 16px;
    }
  }
}

@include media-breakpoint-up(sm) {
  .change-password {
    &__ctas {
      .btn {
        width: auto;
      }
    }
  }
}

@include media-breakpoint-up(md) {
  .change-password {
    &__header {
      .title {
        @include font-size(34);
        @include line-height(46);
      }
    }

    .account-nav {
      margin-bottom: 24px;
    }

    &__form {
      max-width: 384px;
    }
  }
}

@include media-breakpoint-up(lg) {
  .change-password {
    padding-top: 40px;

    .globalMessages {
      .notification:first-child {
        margin-top: 0;
      }

      .notification:last-child {
        margin-bottom: 24px;
      }
    }
  }
}
