.Container {
  position: relative;
  display: block;
}

.Input {
  display: flex;
  background: $color-white;
  border: 1px solid $color-darkgray;
  border-radius: rem(16px);
  padding: rem(10px) rem(10px);
  transition: border ease .5s;

  font-family: $font-roboto;
  font-weight: $font-regular;
  font-size: rem(16px);
  line-height: 100%;
  color: $color-text;
  width: max-content;

  @include iftablet {
    font-size: rem(16px);
    padding: rem(10px) rem(16px);
  }

  @include iflaptop {
    font-size: rem(18px);
    padding: rem(10px) rem(16px);
  }

  @include ifdesktop {
    font-size: rem(20px);
  }

  &:focus {
    border-color: $color-green;
    transition: border-color ease .5s;
  }

  &:hover {
    border-color: $color-text;
    transition: border-color ease .5s;
  }

  &:focus:hover {
    border-color: $color-green;
    transition: border-color ease .5s;
  }

  &_error {
    border-color: $color-error;
  }

  &_fullWidth {
    width: 100%;
  }

  &_ghost {
    background: transparent;
    color: $color-white;
    border: 1px solid $color-white;

    &:focus {
      //border-color: $color-orange;
      border-color: $color-white;
      box-shadow: 0 0 0 0.2rem rgb(76 175 80 / 50%);
      transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

    &:hover {
      border-color: $color-white;
      box-shadow: 0 0 0 0.2rem rgb(76 175 80 / 50%);
      transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

    &:focus:hover {
      //border-color: $color-orange;
      border-color: $color-white;
      box-shadow: 0 0 0 0.2rem rgb(76 175 80 / 50%);
      transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

    &::placeholder {
      color: $color-white;
    }
  }
}

.Error {
  position: absolute;
  z-index: 2;
  left: rem(8px);
  bottom: rem(-16px);
  font-family: $font-roboto;
  font-weight: $font-light;
  font-size: rem(12px);
  line-height: 100%;
  color: $color-error;
}