.container {
  display: flex;
  flex-direction: column;
  .inputContainer {
    display: flex;
    align-items: center;
    position: relative;
    .input {
      width: 100%;
      height: 32px;
      padding: 0 10px;
      border: 1px solid $catskill-white;
      border-radius: 3px;
      outline: none;
      font-size: 14px;
      color: $dark-gray;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      &[type=password]:not([value='']) {
        padding-top: 2px;
      }
      &::placeholder {
        color: $gray;
      }
    }
    &.focused .input {
      border: 1px solid $viking;
    }
    &.disabled {
      .input {
        background-color: $catskill-white;
        color: $gray;
      }
      .separator {
        border-right: 1px solid $mischka;
      }
      * {
        cursor: not-allowed;
      }
    }
    &.withLeftIcon {
      &>:first-child {
        position: absolute;
        left: 9px;
        z-index: 1;
      }
      .leftIcon {
        color: $ghost;
      }
      .separator {
        position: absolute;
        left: 33px;
        height: 16px;
        z-index: 1;
      }
      .input {
        padding-left: 42px;
      }
      &:not(.disabled) .separator {
        border-right: 1px solid $catskill-white;
      }
    }
    &.withRightIcon {
      &>:last-child {
        position: absolute;
        right: 9px;
        z-index: 1;
      }
      .rightIcon {
        color: $ghost;
      }
      .input {
        padding-right: 34px;
      }
    }
  }
  &.withError {
    .label {
      color: $sunset-orange;
    }
    .inputContainer {
      .leftIcon {
        color: $sunset-orange;
      }
      .input {
        border: 1px solid $sunset-orange;
      }
      &.focused {
        .leftIcon {
          color: $guardsman-red;
        }
        .input {
          border: 1px solid $guardsman-red;
        }
      }
    }
  }
}
